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

Editorial: tidy up hidden enumerated attribute #9985

Merged
26 changes: 15 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77527,23 +77527,27 @@ END:VCARD</pre>

<p>All <span>HTML elements</span> may have the <dfn element-attr for="html-global"><code
data-x="attr-hidden">hidden</code></dfn> content attribute set. The <code
data-x="attr-hidden">hidden</code> attribute is an <span>enumerated attribute</span>. The
following table lists the states for this attribute:</p>
data-x="attr-hidden">hidden</code> attribute is an <span>enumerated attribute</span> with the
following keywords and states:</p>

<table>
<thead>
<tr>
<th>Keyword
keithamus marked this conversation as resolved.
Show resolved Hide resolved
<th>State
<th>Keywords
<th>Brief description
<tbody>
<tr>
<td><span data-x="attr-hidden-until-found-state">Until found state</span>
<td><dfn attr-value for="html-global/hidden"><code data-x="attr-hidden-until-found-keyword">until-found</code></dfn>
<td><dfn attr-value for="html-global/hidden"><code data-x="attr-hidden-until-found">until-found</code></dfn>
<td><span data-x="attr-hidden-until-found-state">Until found</span>
keithamus marked this conversation as resolved.
Show resolved Hide resolved
<td>Will not be rendered but content inside will be accessible to <span>find-in-page</span> and
<span data-x="navigate-fragid">fragment navigation</span>
<tr>
<td rowspan=2><span data-x="attr-hidden-hidden-state">Hidden state</span>
<td>The empty string
<td rowspan=2><span data-x="attr-hidden-hidden-state">Hidden</span>
<td rowspan=2>Will not be rendered.
<tr>
<td><dfn attr-value for="html-global/hidden"><code data-x="attr-hidden-hidden-keyword">hidden</code></dfn>
<td><dfn attr-value for="html-global/hidden"><code data-x="attr-hidden-hidden">hidden</code></dfn>
</table>

<p>The attribute's <i data-x="missing value default">missing value default</i> is the <dfn
keithamus marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -77685,7 +77689,7 @@ END:VCARD</pre>
<ol>
<li><p>If the <code data-x="attr-hidden">hidden</code> attribute is in the <span
data-x="attr-hidden-until-found-state">until-found</span> state, then return "<code
keithamus marked this conversation as resolved.
Show resolved Hide resolved
data-x="attr-hidden-until-found-keyword">until-found</code>".</p></li>
data-x="attr-hidden-until-found">until-found</code>".</p></li>

<li><p>If the <code data-x="attr-hidden">hidden</code> attribute is set, then return
true.</p></li>
Expand All @@ -77697,9 +77701,9 @@ END:VCARD</pre>

<ol>
<li><p>If the given value is a string that is an <span>ASCII case-insensitive</span> match for
"<code data-x="attr-hidden-until-found-keyword">until-found</code>", then set the <code
"<code data-x="attr-hidden-until-found">until-found</code>", then set the <code
data-x="attr-hidden">hidden</code> attribute to "<code
data-x="attr-hidden-until-found-keyword">until-found</code>".</p></li>
data-x="attr-hidden-until-found">until-found</code>".</p></li>

<li><p>Otherwise, if the given value is false, then remove the <code
data-x="attr-hidden">hidden</code> attribute.</p></li>
Expand Down Expand Up @@ -137772,7 +137776,7 @@ interface <dfn interface>External</dfn> {
<th> <code data-x="">hidden</code>
<td> <span data-x="attr-hidden">HTML elements</span>
<td> Whether the element is relevant
<td> "<code data-x="attr-hidden-until-found-keyword">until-found</code>";
<td> "<code data-x="attr-hidden-until-found">until-found</code>";
"<code data-x="attr-hidden">hidden</code>";
the empty string
<tr>
Expand Down