mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Minor cleanup of element.innerText
This commit is contained in:
parent
6a7ae3b12e
commit
ff81707928
2 changed files with 10 additions and 18 deletions
|
@ -478,8 +478,7 @@ fn append_text_node_to_fragment(
|
|||
text: String
|
||||
) {
|
||||
let text = Text::new(DOMString::from(text), document);
|
||||
let node = DomRoot::upcast::<Node>(text);
|
||||
fragment.upcast::<Node>().AppendChild(&node).unwrap();
|
||||
fragment.upcast::<Node>().AppendChild(&text.upcast()).unwrap();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#attr-data-*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue