Bug 275196, xml:id, r=sicking, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@231049 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1376,8 +1376,7 @@ nsHTMLDocument::AttributeWillChange(nsIContent* aContent, PRInt32 aNameSpaceID,
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else if (aAttribute == aContent->GetIDAttributeName() &&
|
||||
aNameSpaceID == kNameSpaceID_None) {
|
||||
} else if (aContent->IsPotentialIDAttributeName(aNameSpaceID, aAttribute)) {
|
||||
nsresult rv = RemoveFromIdTable(aContent);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
@@ -1406,8 +1405,7 @@ nsHTMLDocument::AttributeChanged(nsIDocument* aDocument,
|
||||
if (name) {
|
||||
UpdateNameTableEntry(name, aContent);
|
||||
}
|
||||
} else if (aAttribute == aContent->GetIDAttributeName() &&
|
||||
aNameSpaceID == kNameSpaceID_None) {
|
||||
} else if (aContent->IsPotentialIDAttributeName(aNameSpaceID, aAttribute)) {
|
||||
nsIAtom* id = aContent->GetID();
|
||||
if (id) {
|
||||
UpdateIdTableEntry(id, aContent);
|
||||
|
||||
Reference in New Issue
Block a user