mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Rewrite DocumentType::new to current standards.
This commit is contained in:
parent
655a2099ef
commit
8c388f6bd4
2 changed files with 28 additions and 13 deletions
|
@ -325,13 +325,13 @@ pub fn parse_html(cx: *JSContext,
|
|||
public_id: public_id,
|
||||
system_id: system_id,
|
||||
force_quirks: force_quirks } = doctype;
|
||||
let node = @DocumentType::new(name,
|
||||
public_id,
|
||||
system_id,
|
||||
force_quirks,
|
||||
document);
|
||||
let node = DocumentType::new(name,
|
||||
public_id,
|
||||
system_id,
|
||||
force_quirks,
|
||||
document);
|
||||
unsafe {
|
||||
Node::as_abstract_node(cx, node).to_hubbub_node()
|
||||
node.to_hubbub_node()
|
||||
}
|
||||
},
|
||||
create_element: |tag: ~hubbub::Tag| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue