From 43c57866c2bbc20dc0deb15a721a28cbaad2140c Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 20 Jul 2016 03:29:57 -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 1ea1d933c75..79e31fa2286 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

@@ -3139,7 +3150,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
  • @@ -23272,39 +23283,37 @@ interface HTMLHyperlinkElementUtils {