mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Pass the prefix to Element::new in create_element.
This commit is contained in:
parent
76cc006a40
commit
a5e9f97c8f
2 changed files with 1 additions and 6 deletions
|
@ -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(
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[Node-cloneNode.html]
|
||||
type: testharness
|
||||
[Prefixed non-HTML element]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue