Implement "child text content" concept; use it where appropriate.

This commit is contained in:
Corey Farwell 2016-12-10 17:41:33 -10:00
parent 872ec89a9c
commit 9073a2f4c6
4 changed files with 8 additions and 11 deletions

View file

@ -2667,7 +2667,7 @@ impl DocumentMethods for Document {
None => DOMString::new(),
Some(ref title) => {
// Steps 3-4.
let value = Node::collect_text_contents(title.children());
let value = title.child_text_content();
DOMString::from(str_join(split_html_space_chars(&value), " "))
},
}