aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/node.rs
diff options
context:
space:
mode:
authorAdam Sinnett <adam.sinnett@jivesoftware.com>2014-02-15 13:52:33 -0800
committerAdam Sinnett <adam.sinnett@jivesoftware.com>2014-02-15 13:52:33 -0800
commitffcd3833de3585f38a7b80c8b92bf7546803da8e (patch)
tree30ab014dfd6300b4e08bb2b34f5fe7d9211bfc6d /src/components/script/dom/node.rs
parent425210b9b404ca769037879f9c2a01c63a0375c8 (diff)
downloadservo-ffcd3833de3585f38a7b80c8b92bf7546803da8e.tar.gz
servo-ffcd3833de3585f38a7b80c8b92bf7546803da8e.zip
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
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r--src/components/script/dom/node.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index fc57050a3b5..adf248ef07f 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -1064,7 +1064,7 @@ impl Node {
for node in abstract_self.traverse_preorder() {
if node.is_text() {
node.with_imm_text(|text| {
- content = content + text.element.Data();
+ content = content + text.characterdata.Data();
})
}
}
@@ -1591,7 +1591,7 @@ impl Node {
node.with_imm_processing_instruction(|pi| {
other.with_imm_processing_instruction(|other_pi| {
(pi.target == other_pi.target) &&
- (pi.element.data == other_pi.element.data)
+ (pi.characterdata.data == other_pi.characterdata.data)
})
})
}