mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement "child text content" concept; use it where appropriate.
This commit is contained in:
parent
872ec89a9c
commit
9073a2f4c6
4 changed files with 8 additions and 11 deletions
|
@ -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), " "))
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue