mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 15:12:28 +00:00
Force all HTML tags to lower case.
This commit is contained in:
parent
0b6657a837
commit
58a218c757
@ -1041,6 +1041,9 @@ XULContentSinkImpl::AddAttributes(const nsIParserNode& aNode,
|
||||
}
|
||||
#endif
|
||||
|
||||
if (nameSpaceID == kNameSpaceID_HTML)
|
||||
attr.ToLowerCase();
|
||||
|
||||
// Get the URI for the namespace, so we can construct a
|
||||
// fully-qualified property name.
|
||||
mNameSpaceManager->GetNameSpaceURI(nameSpaceID, k);
|
||||
@ -1075,6 +1078,7 @@ XULContentSinkImpl::OpenTag(const nsIParserNode& aNode)
|
||||
|
||||
// HTML tags all need to be upper-cased
|
||||
if (nameSpaceID == kNameSpaceID_HTML) {
|
||||
tag.ToLowerCase();
|
||||
if (tag.Equals("script")) {
|
||||
return OpenScript(aNode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user