From a5e9f97c8fddf754e7df876b8df766f818ab2b51 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 30 Oct 2014 17:42:39 +0100 Subject: [PATCH] Pass the prefix to Element::new in create_element. --- components/script/dom/create.rs | 2 +- tests/wpt/metadata/dom/nodes/Node-cloneNode.html.ini | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 tests/wpt/metadata/dom/nodes/Node-cloneNode.html.ini 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, document: JSRef, creator: ElementCreator) -> Temporary { 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 -