auto merge of #890 : Ms2ger/servo/textcontent-getter-bug, r=jdm

I confused Doctype and DocumentFragment nodes when implementing.
This commit is contained in:
bors-servo 2013-09-09 08:07:03 -07:00
commit 150f03e677

View file

@ -524,7 +524,7 @@ impl Node<ScriptView> {
pub fn GetTextContent(&self) -> DOMString {
match self.type_id {
DoctypeNodeTypeId | ElementNodeTypeId(*) => {
ElementNodeTypeId(*) => {
let mut content = ~"";
for node in self.abstract.unwrap().traverse_preorder() {
if node.is_text() {
@ -541,6 +541,9 @@ impl Node<ScriptView> {
characterdata.Data()
}
}
DoctypeNodeTypeId => {
null_string
}
}
}