Skip to content

Commit

Permalink
Add shadowroot attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreed7 committed Sep 25, 2020
1 parent dc2a68a commit 9340b56
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -67306,6 +67306,8 @@ interface <dfn>ElementInternals</dfn> {
boolean <span data-x="dom-ElementInternals-reportValidity">reportValidity</span>();

readonly attribute <span>NodeList</span> <span data-x="dom-ElementInternals-labels">labels</span>;

readonly attribute <code>ShadowRoot</code>? <span data-x="dom-ElementInternals-shadowRoot">shadowRoot</span>;
};

ElementInternals includes <span>ARIAMixin</span>;
Expand Down Expand Up @@ -67405,6 +67407,12 @@ dictionary <dfn>ValidityStateFlags</dfn> {
<var>internals</var>'s <span data-x="internals-target">target element</span>, which will be used
unless the page author overrides them using the <code data-x="attr-aria-*">aria-*</code>
attributes.</p></dd>

<dt><var>internals</var> . <code data-x="dom-ElementInternals-shadowRoot">shadowRoot</code></dt>
<dd><p>Returns the <code>ShadowRoot</code> for <var>internals</var>'s
<span data-x="internals-target">target element</span>, if the
<span data-x="internals-target">target element</span> is a <span>shadow host</span>, or null
otherwise.</p></dd>
</dl>

<p>Each <code>ElementInternals</code> has a <dfn data-x="internals-target">target element</dfn>,
Expand Down Expand Up @@ -67449,6 +67457,12 @@ dictionary <dfn>ValidityStateFlags</dfn> {
<span data-x="internals-target">targeting</span> <var>element</var>, and return it.</p></li>
</ol>

<p>The <dfn><code data-x="dom-ElementInternals-shadowRoot">shadowRoot</code></dfn> attribute on
the <code>ElementInternals</code> object must return the <code>ShadowRoot</code> for
<code>ElementInternals</code>'s <span data-x="internals-target">target element</span>, if the
<span data-x="internals-target">target element</span> is a <span>shadow host</span>, or null
otherwise.</p>

<hr>

<p>Each <span>form-associated custom element</span> has <dfn
Expand Down

0 comments on commit 9340b56

Please sign in to comment.