From 14322e526d53cde0814bec041d7fab6dd77f7e88 Mon Sep 17 00:00:00 2001 From: Hayato Ito Date: Thu, 7 Aug 2014 14:35:13 +0900 Subject: [PATCH] [Shadow DOM] (Bug 22141) Add Node.deepContains(Node? other) --- spec/shadow/index.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/spec/shadow/index.html b/spec/shadow/index.html index 2948f824..b3e51c6e 100644 --- a/spec/shadow/index.html +++ b/spec/shadow/index.html @@ -124,6 +124,21 @@

Shadow trees

The youngest shadow root is the root node of the youngest shadow tree.

+

+ A node A is called a child or hosted shadow root of a node B, + if either A is a child of B or A is the root node of the shadow tree that B hosts. +

+ +

+ A node A is called a deep descendant of a node B, + if either A is a child or hosted shadow root of B + or A is child or hosted shadow root of a node C that is a deep descendant of B. +

+ +

+ An inclusive deep descendant is a node or one of its deep descendants. +

+

For convenience, the shadow root provides its own set of DOM tree accessor methods. No nodes other than the shadow root descendants are accessible with these methods. @@ -1230,6 +1245,15 @@

Extensions to Element Interface

+
+

Extensions to Node Interface

+ +
+
boolean deepContains(Node? other)
+
When invoked, the method must return true if other is an inclusive deep descendant of the context object, and false otherwise (including when other is null).
+
+
+

The content element