mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use DOMString::new() somewhat consistently.
This commit is contained in:
parent
dab3926622
commit
e6aa976462
24 changed files with 67 additions and 68 deletions
|
@ -96,7 +96,7 @@ impl HTMLOptionElementMethods for HTMLOptionElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-option-text
|
||||
fn Text(&self) -> DOMString {
|
||||
let mut content = String::new();
|
||||
let mut content = DOMString::new();
|
||||
collect_text(self.upcast(), &mut content);
|
||||
str_join(split_html_space_chars(&content), " ")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue