From 0316b621cfe8a7aa4ad50a2ec7d10dba902ddccb Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 7 Mar 2016 09:23:58 +0100 Subject: [PATCH] Add Node.prototype.rootNode See https://github.com/w3c/webcomponents/issues/80 for context and discussion. --- dom.bs | 7 +++++++ dom.html | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dom.bs b/dom.bs index 06b7a6512..56fa6bafc 100644 --- a/dom.bs +++ b/dom.bs @@ -2965,6 +2965,7 @@ interface Node : EventTarget { readonly attribute DOMString baseURI; readonly attribute Document? ownerDocument; + readonly attribute Node rootNode; readonly attribute Node? parentNode; readonly attribute Element? parentElement; boolean hasChildNodes(); @@ -3194,6 +3195,9 @@ The baseURI attribute's getter must r Returns the node document. Returns null for documents. +
node . {{Node/rootNode}} +
Returns the root. +
node . {{Node/parentNode}}
Returns the parent. @@ -3241,6 +3245,9 @@ All nodes have a document at all times. +

The rootNode attribute's getter must return +context object's root. + The parentNode attribute must return the parent.