diff options
author | bors-servo <release+servo@mozilla.com> | 2014-02-15 22:05:04 -0500 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-02-15 22:05:04 -0500 |
commit | a0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9 (patch) | |
tree | 30ab014dfd6300b4e08bb2b34f5fe7d9211bfc6d /src/components/script/html/hubbub_html_parser.rs | |
parent | 425210b9b404ca769037879f9c2a01c63a0375c8 (diff) | |
parent | ffcd3833de3585f38a7b80c8b92bf7546803da8e (diff) | |
download | servo-a0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9.tar.gz servo-a0b55b4c6cfacf3c9d59a07c8ee756c0dffad7f9.zip |
auto merge of #1702 : quandrum/servo/element_to_characterdata, r=jdm
... to characterdata
All other node's parent type names reflect the actual type of the parent. This change extends that convention to the indicated nodes.
closes #1594
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index fdce3cb19a2..ac50e9cfc34 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -468,7 +468,7 @@ pub fn parse_html(cx: *JSContext, for child in scriptnode.children() { debug!("child = {:?}", child); child.with_imm_text(|text| { - data.push(text.element.data.to_str()); // FIXME: Bad copy. + data.push(text.characterdata.data.to_str()); // FIXME: Bad copy. }); } @@ -490,7 +490,7 @@ pub fn parse_html(cx: *JSContext, for child in style.children() { debug!("child = {:?}", child); child.with_imm_text(|text| { - data.push(text.element.data.to_str()); // FIXME: Bad copy. + data.push(text.characterdata.data.to_str()); // FIXME: Bad copy. }); } |