mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Use HTMLHtmlElement::new in parse_html.
This commit is contained in:
parent
e918d4daf0
commit
4ac0dc1bfd
1 changed files with 1 additions and 2 deletions
|
@ -333,8 +333,7 @@ pub fn parse_html(cx: *JSContext,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the root node.
|
// Build the root node.
|
||||||
let root = @HTMLHtmlElement { htmlelement: HTMLElement::new(HTMLHtmlElementTypeId, ~"html", document) };
|
let root = HTMLHtmlElement::new(~"html", document);
|
||||||
let root = unsafe { Node::as_abstract_node(cx, root) };
|
|
||||||
debug!("created new node");
|
debug!("created new node");
|
||||||
let mut parser = hubbub::Parser("UTF-8", false);
|
let mut parser = hubbub::Parser("UTF-8", false);
|
||||||
debug!("created parser");
|
debug!("created parser");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue