Replacing Node.prototype.rootNode for Node.prototype.getRootNode.

This commit is contained in:
Rafael Gomes Dantas 2016-10-11 21:17:28 +01:00 committed by Rafael Dantas
parent 3916d1d613
commit 0074d2a7a8
5 changed files with 6 additions and 73 deletions

View file

@ -1934,8 +1934,8 @@ impl NodeMethods for Node {
}
}
// https://dom.spec.whatwg.org/#dom-node-rootnode
fn RootNode(&self) -> Root<Node> {
// https://dom.spec.whatwg.org/#dom-node-getrootnode
fn GetRootNode(&self) -> Root<Node> {
self.inclusive_ancestors().last().unwrap()
}
@ -2703,3 +2703,4 @@ impl Into<LayoutElementType> for ElementTypeId {
}
}
}