Check that we are HTML, in addition to checking namespace, before going

case-insensitive.  Bug 209271, r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-06-20 20:23:17 +00:00
Родитель d6c3840ec2
Коммит 7f7faf723e
2 изменённых файлов: 10 добавлений и 6 удалений

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

@ -186,9 +186,11 @@ nsDOMCSSAttributeDeclaration::GetCSSParsingEnvironment(nsIURI** aBaseURI,
return result;
}
// look up our namespace. If we're XHTML, we need to be case-sensitive
// Otherwise, we should not be
(*aCSSParser)->SetCaseSensitive(nodeInfo->NamespaceEquals(kNameSpaceID_XHTML));
// If we are not HTML, we need to be case-sensitive. Otherwise, Look up our
// namespace. If we're XHTML, we need to be case-sensitive Otherwise, we
// should not be
(*aCSSParser)->SetCaseSensitive(!mContent->IsContentOfType(nsIContent::eHTML) ||
nodeInfo->NamespaceEquals(kNameSpaceID_XHTML));
return NS_OK;
}

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

@ -186,9 +186,11 @@ nsDOMCSSAttributeDeclaration::GetCSSParsingEnvironment(nsIURI** aBaseURI,
return result;
}
// look up our namespace. If we're XHTML, we need to be case-sensitive
// Otherwise, we should not be
(*aCSSParser)->SetCaseSensitive(nodeInfo->NamespaceEquals(kNameSpaceID_XHTML));
// If we are not HTML, we need to be case-sensitive. Otherwise, Look up our
// namespace. If we're XHTML, we need to be case-sensitive Otherwise, we
// should not be
(*aCSSParser)->SetCaseSensitive(!mContent->IsContentOfType(nsIContent::eHTML) ||
nodeInfo->NamespaceEquals(kNameSpaceID_XHTML));
return NS_OK;
}