mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Take the prefix from createElementNS into account for HTML elements
Fixes #3139
This commit is contained in:
parent
0549ed3c67
commit
3a5a66d54e
73 changed files with 405 additions and 477 deletions
|
@ -1382,7 +1382,7 @@ impl Node {
|
|||
let element: JSRef<Element> = ElementCast::to_ref(node).unwrap();
|
||||
let element = element.deref();
|
||||
let element = build_element_from_tag(element.local_name.as_slice().to_string(),
|
||||
element.namespace.clone(), *document);
|
||||
element.namespace.clone(), Some(element.prefix.as_slice().to_string()), *document);
|
||||
NodeCast::from_temporary(element)
|
||||
},
|
||||
TextNodeTypeId => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue