Skip to content

Commit

Permalink
Add delegatesFocus to attachShadow and flag to ShadowRoot
Browse files Browse the repository at this point in the history
Fixes whatwg#367, i.e. the DOM part of
whatwg/html#2013. Further commits in HTML will
use this flag.
  • Loading branch information
rakina authored and domenic committed Sep 24, 2019
1 parent a6c6d98 commit 4cf85ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5764,6 +5764,9 @@ enum ShadowRootMode { "open", "closed" };
<p><a for=/>Shadow roots</a> have an associated <dfn for=ShadowRoot>mode</dfn> ("<code>open</code>"
or "<code>closed</code>").</p>

<p><a for=/>Shadow roots</a> have an associated <dfn export for=ShadowRoot>delegates focus</dfn>.
It is initially set to false.</p>

<p><a for=/>Shadow roots</a>'s associated <a for=DocumentFragment>host</a> is never null.</p>
<!-- If we ever change this, e.g., add a ShadowRoot object constructor, that would have serious
consequences for innerHTML. -->
Expand Down Expand Up @@ -5907,6 +5910,7 @@ interface Element : Node {

dictionary ShadowRootInit {
required ShadowRootMode mode;
boolean delegatesFocus = false;
};
</pre>

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

<li><p>Set <var>shadow</var>'s <a for=ShadowRoot>delegates focus</a> to <var>init</var>'s
{{ShadowRootInit/delegatesFocus}}.

<li><p>Set <a>context object</a>'s <a for=Element>shadow root</a> to <var>shadow</var>.

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

0 comments on commit 4cf85ef

Please sign in to comment.