Bug 41983: Make (x)html-elements support namespaced attributes.
r=heikki sr=jst a=roc+moz git-svn-id: svn://10.0.0.236/trunk@117531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1762,12 +1762,6 @@ nsXMLContentSink::AddAttributes(const PRUnichar** aAtts,
|
||||
nameSpaceID = kNameSpaceID_None;
|
||||
nameAtom = dont_AddRef(NS_NewAtom(key));
|
||||
nameSpacePrefix = nsnull;
|
||||
} else if ((kNameSpaceID_XMLNS == nameSpaceID) && aIsHTML) {
|
||||
// Ooh, what a nice little hack we have here :-)
|
||||
nsAutoString name;
|
||||
nameAtom->ToString(name);
|
||||
nameAtom = dont_AddRef(NS_NewAtom(NS_LITERAL_STRING("xmlns:") + name));
|
||||
nameSpaceID = kNameSpaceID_HTML; // XXX this is wrong, but necessary until HTML can store other namespaces for attrs
|
||||
}
|
||||
|
||||
nsCOMPtr<nsINodeInfo> ni;
|
||||
|
||||
Reference in New Issue
Block a user