diff options
author | Ms2ger <ms2ger@gmail.com> | 2013-11-02 21:34:44 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2013-11-02 21:34:44 +0100 |
commit | 8c388f6bd4650858faedf19ed90262507447b00d (patch) | |
tree | 9a7eaf72643bf7ce35fa086fa4157dd69c3274de /src/components/script/html/hubbub_html_parser.rs | |
parent | 655a2099ef1adf6b8712557331ef649d990b0541 (diff) | |
download | servo-8c388f6bd4650858faedf19ed90262507447b00d.tar.gz servo-8c388f6bd4650858faedf19ed90262507447b00d.zip |
Rewrite DocumentType::new to current standards.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index f1622d8215e..d9813d502f4 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -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| { |