Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delegatesFocus init to attachShadow and flag to ShadowRoot #768

Merged
merged 4 commits into from
Sep 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5758,6 +5758,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 @@ -5896,6 +5899,7 @@ interface Element : Node {

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

Expand Down Expand Up @@ -6794,6 +6798,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 @@ -10087,6 +10094,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