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

@ -717,7 +717,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> {
match self.type_id() {
TextNodeTypeId => {
unsafe {
if !self.with_text(|text| text.element
if !self.with_text(|text| text.characterdata
.data
.chars()
.all(|c| c.is_whitespace())) {