aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/script/dom/create.rs2
-rw-r--r--tests/wpt/metadata/dom/nodes/Node-cloneNode.html.ini5
2 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs
index 24f04fcbc33..59b6bb756bc 100644
--- a/components/script/dom/create.rs
+++ b/components/script/dom/create.rs
@@ -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(
diff --git a/tests/wpt/metadata/dom/nodes/Node-cloneNode.html.ini b/tests/wpt/metadata/dom/nodes/Node-cloneNode.html.ini
deleted file mode 100644
index e8a25099d6e..00000000000
--- a/tests/wpt/metadata/dom/nodes/Node-cloneNode.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[Node-cloneNode.html]
- type: testharness
- [Prefixed non-HTML element]
- expected: FAIL
-