mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Add flag for sync/async CE creation
This commit is contained in:
parent
2f36d3544f
commit
062b128688
9 changed files with 78 additions and 35 deletions
|
@ -13,7 +13,7 @@ use dom::bindings::trace::JSTraceable;
|
|||
use dom::comment::Comment;
|
||||
use dom::document::Document;
|
||||
use dom::documenttype::DocumentType;
|
||||
use dom::element::{Element, ElementCreator};
|
||||
use dom::element::{CustomElementCreationMode, Element, ElementCreator};
|
||||
use dom::htmlformelement::{FormControlElementHelpers, HTMLFormElement};
|
||||
use dom::htmlscriptelement::HTMLScriptElement;
|
||||
use dom::htmltemplateelement::HTMLTemplateElement;
|
||||
|
@ -252,7 +252,8 @@ impl Sink {
|
|||
let elem = Element::create(name,
|
||||
is,
|
||||
&*self.document,
|
||||
ElementCreator::ParserCreated(self.current_line));
|
||||
ElementCreator::ParserCreated(self.current_line),
|
||||
CustomElementCreationMode::Synchronous);
|
||||
for attr in attrs {
|
||||
elem.set_attribute_from_parser(attr.name, DOMString::from(String::from(attr.value)), None);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue