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:
hyatt%netscape.com 1999-03-05 00:02:33 +00:00
parent 4920fe00ea
commit dd7c2d27e3

View File

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