Skip to content

Add new category for typeable form controls with normalization #1910

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
29 changes: 29 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6400,6 +6400,13 @@ <h4><dfn>Element Send Keys</dfn></h4>
in the <a><code>number</code> state</a> on non-desktop devices.
</div>

<p>
A <dfn>typeable form control with normalization</dfn>
is an [^input^] element
whose [^input/type^] attribute state
requires that user-provided values be normalized before being assigned to the element's value attribute.
This applies to <code>type="date"</code> and <code>type="datetime-local"</code>.

<p>The <a>key input source</a> used for input may be cleared mid-way
through “typing” by sending the <dfn>null key</dfn>, which is U+E000
(NULL).
Expand Down Expand Up @@ -6751,6 +6758,28 @@ <h4><dfn>Element Send Keys</dfn></h4>
</ol>
</dd>

<dt><var><a>element</a></var> is a <a>typeable form control with normalization</a>
<dd>
<ol>
<li><p>If <var>element</var> does not have an <a>own property</a>
named <code>value</code> return an <a>error</a> with <a>error
code</a> <a>element not interactable</a>

<li><p>If <var>element</var> is not <a>mutable</a> return
an <a>error</a> with <a>error code</a> <a>element not
interactable</a>.
<li><p>Normalize the <code>value</code> to conform to the expected input format of <var>element</var>.
<li><p><a>Set a property</a> <code>value</code> to <var>text</var>
on <var>element</var>.

<li><p>If <var>element</var> is <a>suffering from bad input</a>
return an <a>error</a> with <a>error code</a> <a>invalid
argument</a>.

<li><p>Return <a>success</a> with data <a><code>null</code></a>.
</ol>
</dd>

<dt><var><a>element</a></var> is <a>content editable</a>
<dd>If <var><a>element</a></var> does not currently have focus,
set the text insertion caret after any child content.
Expand Down