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

Define what tabIndex returns when the tabindex attribute is not set #4754

Merged
merged 6 commits into from
Jul 9, 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
32 changes: 24 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -57285,18 +57285,30 @@ interface <dfn>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {

<div w-nodev>

<p>The <span>activation behavior</span> of <code>summary</code> elements is to run the following
steps:</p>
<p>A <code>summary</code> element is a <dfn>summary for its parent details</dfn> if the following
algorithm returns true:</p>

<ol>
<li><p>If this <code>summary</code> element has no parent node, then return.</p></li>
<li><p>If this <code>summary</code> element has no parent, then return false.</p></li>

<li><p>Let <var>parent</var> be this <code>summary</code> element's parent node.</p>
<li><p>Let <var>parent</var> be this <code>summary</code> element's parent.</p></li>

<li><p>If <var>parent</var> is not a <code>details</code> element, then return.</p>
<li><p>If <var>parent</var> is not a <code>details</code> element, then return false.</p></li>

<li><p>If <var>parent</var>'s first <code>summary</code> element child is not this
<code>summary</code> element, then return.</p></li>
<code>summary</code> element, then return false.</p></li>

<li><p>Return true.</p></li>
</ol>

<p>The <span>activation behavior</span> of <code>summary</code> elements is to run the following
steps:</p>

<ol>
<li><p>If this <code>summary</code> element is not the <span>summary for its parent
details</span>, then return.</p></li>

<li><p>Let <var>parent</var> be this <code>summary</code> element's parent.</p></li>

<li>
<p>If the <code data-x="attr-details-open">open</code> attribute is present on
Expand Down Expand Up @@ -73709,8 +73721,12 @@ END:VCARD</pre>

<p>The <dfn><code data-x="dom-tabIndex">tabIndex</code></dfn> IDL attribute must
<span>reflect</span> the value of the <code data-x="attr-tabindex">tabindex</code> content
attribute. Its default value is 0 for elements that are focusable and &#x2212;1 for elements that
are not focusable.</p>
attribute. The default value is 0 if the element is an <code>a</code>, <code>area</code>,
<code>button</code>, <code>iframe</code>, <code>input</code>, <code>select</code>, or
<code>textarea</code> element, or is a <code>summary</code> element that is a <span>summary for
its parent details</span>. The default value is &#x2212;1 otherwise.</p>

<p class="note">The varying default value based on element type is a historical artifact.</p>

</div>

Expand Down