mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Changes to the content sink to make sure attributes are not converted to lower case
and to make sure attributes are put into the correct namespace.
This commit is contained in:
parent
4920fe00ea
commit
dd7c2d27e3
@ -968,7 +968,15 @@ XULContentSinkImpl::GetXULIDAttribute(const nsIParserNode& aNode,
|
||||
for (PRInt32 i = 0; i < ac; i++) {
|
||||
// Get upper-cased key
|
||||
const nsString& key = aNode.GetKeyAt(i);
|
||||
SplitQualifiedName(key, nameSpaceID, attr);
|
||||
attr = key;
|
||||
nsIAtom* prefix = CutNameSpacePrefix(attr);
|
||||
if (prefix != nsnull)
|
||||
{
|
||||
SplitQualifiedName(key, nameSpaceID, attr);
|
||||
NS_RELEASE(prefix);
|
||||
}
|
||||
else
|
||||
nameSpaceID = kNameSpaceID_None; // Unqualified attributes have a namespace of none (always)
|
||||
|
||||
// Look for XUL:ID
|
||||
if (nameSpaceID != kNameSpaceID_None)
|
||||
|
Loading…
Reference in New Issue
Block a user