Change Text, Comment and ProcessingInstructions parent name from element 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
This commit is contained in:
Adam Sinnett 2014-02-15 13:52:33 -08:00
parent 425210b9b4
commit ffcd3833de
10 changed files with 32 additions and 21 deletions

View file

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