From a1313de6a426f81cf22ce5feccc16cf65f862214 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 19 Jul 2016 13:24:49 -0400 Subject: [PATCH] Make work inside shadow trees Fixes https://github.com/w3c/webcomponents/issues/530. --- source | 65 +++++++++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/source b/source index 466c8590e0a..099aba7cdf1 100644 --- a/source +++ b/source @@ -2129,16 +2129,27 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

A node is inserted into a document when the insertion - steps are invoked with it as argument and it is now in a document tree. + steps are invoked with it as the argument and it is now in a document tree. Analogously, a node is removed from a document when the removing steps are invoked with it as argument and it is - now no longer in a document tree.

+ data-x="concept-node-remove-ext">removing steps are invoked with it as the argument and it + is now no longer in a document tree.

A node becomes connected when the insertion - steps are invoked with it as argument and it is now connected. Analogously, a - node becomes disconnected when the removing - steps are invoked with it as argument and it is now no longer connected.

+ steps are invoked with it as the argument and it is now connected. + Analogously, a node becomes disconnected when the removing steps are invoked with it as the argument and it + is now no longer connected.

+ +

A node is browsing-context connected when it is connected and its shadow-including root has a browsing context. A node becomes browsing-context + connected when the insertion steps are invoked + with it as the argument and it is now browsing-context connected. A node becomes + browsing-context disconnected either when the removing steps are invoked with it as the argument and it + is now no longer browsing-context connected, or when its shadow-including + root no longer has a browsing context.

Scripting

@@ -3138,7 +3149,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
  • The tree and shadow tree concepts
  • The tree order and shadow-including tree order concepts
  • -
  • The root concept
  • +
  • The root and shadow-including root concepts
  • The inclusive ancestor and shadow-including descendant concepts
  • The document element concept
  • The in a document tree, in a document (legacy), and connected concepts
  • @@ -23216,39 +23227,37 @@ interface HTMLHyperlinkElementUtils {