зеркало из https://github.com/mozilla/pjs.git
Check that we are HTML, in addition to checking namespace, before going
case-insensitive. Bug 209271, r+sr=dbaron
This commit is contained in:
Родитель
d6c3840ec2
Коммит
7f7faf723e
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче