aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 4885d87c64b..8ee51283146 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -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() {