Skip to content

Commit 4cf85ef

Browse files
rakinadomenic
authored andcommitted
Add delegatesFocus to attachShadow and flag to ShadowRoot
Fixes #367, i.e. the DOM part of whatwg/html#2013. Further commits in HTML will use this flag.
1 parent a6c6d98 commit 4cf85ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dom.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5764,6 +5764,9 @@ enum ShadowRootMode { "open", "closed" };
57645764
<p><a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>mode</dfn> ("<code>open</code>"
57655765
or "<code>closed</code>").</p>
57665766

5767+
<p><a for=/>Shadow roots</a> have an associated <dfn export for=ShadowRoot>delegates focus</dfn>.
5768+
It is initially set to false.</p>
5769+
57675770
<p><a for=/>Shadow roots</a>'s associated <a for=DocumentFragment>host</a> is never null.</p>
57685771
<!-- If we ever change this, e.g., add a ShadowRoot object constructor, that would have serious
57695772
consequences for innerHTML. -->
@@ -5907,6 +5910,7 @@ interface Element : Node {
59075910

59085911
dictionary ShadowRootInit {
59095912
required ShadowRootMode mode;
5913+
boolean delegatesFocus = false;
59105914
};
59115915
</pre>
59125916

@@ -6805,6 +6809,9 @@ invoked, must run these steps:
68056809
is <a>context object</a>'s <a for=Node>node document</a>, <a for=DocumentFragment>host</a> is
68066810
<a>context object</a>, and <a for=ShadowRoot>mode</a> is <var>init</var>'s {{ShadowRootInit/mode}}.
68076811

6812+
<li><p>Set <var>shadow</var>'s <a for=ShadowRoot>delegates focus</a> to <var>init</var>'s
6813+
{{ShadowRootInit/delegatesFocus}}.
6814+
68086815
<li><p>Set <a>context object</a>'s <a for=Element>shadow root</a> to <var>shadow</var>.
68096816

68106817
<li><p>Return <var>shadow</var>.
@@ -10217,6 +10224,7 @@ prosody—Gab<!-- riel --> Vereable<!-- Gaston --> <!-- Croft -->Context(,
1021710224
Pierre-Marie Dartus,
1021810225
Ra'Shaun Stovall (Snuggs),
1021910226
Rafael Weinstein,
10227+
Rakina Zata Amni,
1022010228
Richard Bradshaw,
1022110229
Rick Byers,
1022210230
Rick Waldron,

0 commit comments

Comments
 (0)