mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Allow element prefix to be set
Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
This commit is contained in:
parent
dd9bb0550b
commit
37e8b89377
6 changed files with 26 additions and 17 deletions
|
@ -130,7 +130,7 @@ fn create_html_element(name: QualName,
|
|||
CustomElementCreationMode::Asynchronous => {},
|
||||
CustomElementCreationMode::Synchronous => {
|
||||
let local_name = name.local.clone();
|
||||
return match definition.create_element(document) {
|
||||
return match definition.create_element(document, prefix.clone()) {
|
||||
Ok(element) => element,
|
||||
Err(error) => {
|
||||
// Step 6. Recovering from exception.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue