diff options
author | Ms2ger <ms2ger@gmail.com> | 2013-11-02 20:45:22 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2013-11-02 20:45:22 +0100 |
commit | 4ac0dc1bfdf67c55b871c3cddf70c763f09667a7 (patch) | |
tree | d1ee79d866ecec47c743dbdfd3afb9f3595dfc8f /src | |
parent | e918d4daf0d4700096d2c936e5f44ffb75614e46 (diff) | |
download | servo-4ac0dc1bfdf67c55b871c3cddf70c763f09667a7.tar.gz servo-4ac0dc1bfdf67c55b871c3cddf70c763f09667a7.zip |
Use HTMLHtmlElement::new in parse_html.
Diffstat (limited to 'src')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index fb74f2be47e..f906a7d21e1 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -333,8 +333,7 @@ pub fn parse_html(cx: *JSContext, } // Build the root node. - let root = @HTMLHtmlElement { htmlelement: HTMLElement::new(HTMLHtmlElementTypeId, ~"html", document) }; - let root = unsafe { Node::as_abstract_node(cx, root) }; + let root = HTMLHtmlElement::new(~"html", document); debug!("created new node"); let mut parser = hubbub::Parser("UTF-8", false); debug!("created parser"); |