adding .isConnected DOM attribute

This commit is contained in:
Patrick Shaughnessy 2019-12-09 17:27:49 -05:00
parent daf7138f36
commit 0231a0a712
5 changed files with 11 additions and 42 deletions

View file

@ -2296,6 +2296,11 @@ impl NodeMethods for Node {
USVString(String::from(self.owner_doc().base_url().as_str()))
}
// https://dom.spec.whatwg.org/#dom-node-isconnected
fn IsConnected(&self) -> bool {
return self.is_connected();
}
// https://dom.spec.whatwg.org/#dom-node-ownerdocument
fn GetOwnerDocument(&self) -> Option<DomRoot<Document>> {
match self.type_id() {