Implement shadow-including root, set node as in doc when connected. Makes JS work in shadow trees

This commit is contained in:
Fernando Jiménez Moreno 2019-01-25 13:00:26 +01:00
parent 48975840dd
commit 640fc04743
5 changed files with 44 additions and 16 deletions

View file

@ -32,7 +32,7 @@ interface Node : EventTarget {
readonly attribute Document? ownerDocument;
[Pure]
Node getRootNode();
Node getRootNode(optional GetRootNodeOptions options);
[Pure]
readonly attribute Node? parentNode;
@ -92,3 +92,7 @@ interface Node : EventTarget {
[CEReactions, Throws]
Node removeChild(Node child);
};
dictionary GetRootNodeOptions {
boolean composed = false;
};