Pass the prefix to Element::new in create_element.

This commit is contained in:
Ms2ger 2014-10-30 17:42:39 +01:00
parent 76cc006a40
commit a5e9f97c8f
2 changed files with 1 additions and 6 deletions

View file

@ -83,7 +83,7 @@ pub fn create_element(name: QualName, prefix: Option<DOMString>,
document: JSRef<Document>, creator: ElementCreator)
-> Temporary<Element> {
if name.ns != ns!(HTML) {
return Element::new(name.local.as_slice().to_string(), name.ns, None, document);
return Element::new(name.local.as_slice().to_string(), name.ns, prefix, document);
}
macro_rules! make(

View file

@ -1,5 +0,0 @@
[Node-cloneNode.html]
type: testharness
[Prefixed non-HTML element]
expected: FAIL