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

@ -713,7 +713,7 @@ impl HTMLScriptElementMethods for HTMLScriptElement {
// https://html.spec.whatwg.org/multipage/#dom-script-text
fn Text(&self) -> DOMString {
Node::collect_text_contents(self.upcast::<Node>().children())
self.upcast::<Node>().child_text_content()
}
// https://html.spec.whatwg.org/multipage/#dom-script-text