fixes bug 173278 "Should not prefetch <link rel="alternate">" r=gordon sr=alecf

git-svn-id: svn://10.0.0.236/trunk@131458 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2002-10-08 21:04:25 +00:00
parent 68d7f7503c
commit 2fdd85166b

View File

@@ -4986,7 +4986,7 @@ HTMLContentSink::ProcessLINKTag(const nsIParserNode& aNode)
nsStringArray linkTypes;
nsStyleLinkElement::ParseLinkTypes(relVal, linkTypes);
if (linkTypes.IndexOf(NS_LITERAL_STRING("next")) != -1 ||
linkTypes.IndexOf(NS_LITERAL_STRING("prefetch")) != 1) {
linkTypes.IndexOf(NS_LITERAL_STRING("prefetch")) != -1) {
nsAutoString hrefVal;
element->GetAttr(kNameSpaceID_None, nsHTMLAtoms::href, hrefVal);
if (!hrefVal.IsEmpty()) {