mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement ParentNode#replaceChildren
This commit is contained in:
parent
0baa1ea7bd
commit
66f80fbf4f
7 changed files with 29 additions and 100 deletions
|
@ -4753,6 +4753,11 @@ impl DocumentMethods for Document {
|
|||
self.upcast::<Node>().append(nodes)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-parentnode-replacechildren
|
||||
fn ReplaceChildren(&self, nodes: Vec<NodeOrString>) -> ErrorResult {
|
||||
self.upcast::<Node>().replace_children(nodes)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-parentnode-queryselector
|
||||
fn QuerySelector(&self, selectors: DOMString) -> Fallible<Option<DomRoot<Element>>> {
|
||||
let root = self.upcast::<Node>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue