Skip to content

Commit

Permalink
Make behavior of autocapitalize attribute consistent for all form-ass…
Browse files Browse the repository at this point in the history
…ociated elements
  • Loading branch information
rlanday committed Jan 24, 2018
1 parent 5b40420 commit 9501f0b
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -74362,7 +74362,9 @@ body { display:none }
data-x="editing host">editing host</span> to control autocapitalization behavior for the hosted
editable region, on an <code>input</code> or <code>textarea</code> element to control the behavior
for inputting text into that element, or on a <code>form</code> element to control the default
behavior for that form's <code>input</code> and <code>textarea</code> elements.</p>
behavior for that form's <code>input</code> and <code>textarea</code> elements (note: a few other
form-related elements that aren't typically used for text input also inherit the value of the IDL
attribute; see the <span>own autocapitalization hint</span> algorithm for details).</p>

<p>The <code data-x="attr-autocapitalize">autocapitalize</code> attribute never causes
autocapitalization to be enabled for <code>input</code> elements whose <code
Expand Down Expand Up @@ -74459,9 +74461,21 @@ body { display:none }
present on <var>element</var>, and its value is not the empty string, return the state of the
attribute.</p></li>

<li><p>If <var>element</var> is an <code>input</code> or <code>textarea</code> element and has a
non-null <span>form owner</span>, return the <span>own autocapitalization hint</span> of
<var>element</var>'s <span>form owner</span>.</p></li>
<li>
<p>If <var>element</var> is one of the following elements:</p>

<ul>
<li><p><code>button</code></p></li>
<li><p><code>fieldset</code></p></li>
<li><p><code>input</code></p></li>
<li><p><code>output</code></p></li>
<li><p><code>select</code></p></li>
<li><p><code>textarea</code></p></li>
</ul>

<p>return the <span>own autocapitalization hint</span> of <var>element</var>'s <span>form
owner</span>.</p>
</li>

<li><p>Return <span data-x="autocap-hint-default">default</span>.</p></li>
</ol>
Expand Down

0 comments on commit 9501f0b

Please sign in to comment.