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
Родитель 2ef50c0187
Коммит 2cfd455c97
1 изменённых файлов: 9 добавлений и 1 удалений

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

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