fixes bug 272814 "beginAddingChildren notification should be called before attributeSet." patch by smaug@welho.com r=darin sr=bryner

This commit is contained in:
darin@meer.net
2004-12-06 23:09:32 +00:00
parent d81d04f0f7
commit e0452ac359
2 changed files with 8 additions and 5 deletions

View File

@@ -1059,6 +1059,11 @@ nsXMLContentSink::HandleStartElement(const PRUnichar *aName,
}
}
#ifdef MOZ_XTF
if (nameSpaceID > kNameSpaceID_LastBuiltin)
content->BeginAddingChildren();
#endif
// Set the attributes on the new content element
result = AddAttributes(aAtts, content);
@@ -1074,11 +1079,6 @@ nsXMLContentSink::HandleStartElement(const PRUnichar *aName,
PushContent(content);
}
#ifdef MOZ_XTF
if (nameSpaceID > kNameSpaceID_LastBuiltin)
content->BeginAddingChildren();
#endif
// Some HTML nodes need DoneCreatingElement() called to initialize
// properly (eg form state restoration).
if (nodeInfo->NamespaceID() == kNameSpaceID_XHTML &&