diff options
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. }); } |