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

This commit is contained in:
darin%netscape.com 2002-10-08 21:04:25 +00:00
Родитель 277f54ac74
Коммит 4f540c03c1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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()) {