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

[selectors-4] change :user-error to :user-invalid #1978

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 4 additions & 4 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ Selectors Overview</h2>
<td>[[#opt-pseudos]]
<td>3-UI/4
<tr>
<td><code>E:user-error</code>
<td><code>E:user-invalid</code>
<td>a user-altered user-input element E with incorrect input (invalid, out-of-range, omitted-but-required)
<td>[[#user-pseudos]]
<td>4
Expand Down Expand Up @@ -2414,13 +2414,13 @@ The User-interaction Pseudo-class: '':user-invalid''</h4>
The <dfn id="user-error-pseudo">:user-invalid</dfn> pseudo-class
represents an element with incorrect input, but only
<em>after</em> the user has significantly interacted with it.
The '':user-error'' pseudo-class
The '':user-invalid'' pseudo-class
must match an '':invalid'', '':out-of-range'', or blank-but-'':required'' elements
between the time the user has attempted to submit the form
and before the user has interacted again with the form element.
User-agents may allow it to match such elements at other times,
as would be appropriate for highlighting an error to the user.
For example, a UA may choose to have '':user-error'' match
For example, a UA may choose to have '':user-invalid'' match
an '':invalid'' element once the user has typed some text into it
and changed the focus to another element,
and to stop matching only after the user has successfully corrected the input.
Expand All @@ -2429,7 +2429,7 @@ The User-interaction Pseudo-class: '':user-invalid''</h4>
For example, the input in the following document fragment
would match '':invalid'' as soon as the page is loaded
(because it the initial value violates the max-constraint),
but it won't match '':user-error'' until the user significantly interacts with the element,
but it won't match '':user-invalid'' until the user significantly interacts with the element,
or attempts to submit the form it's part of.

<pre>
Expand Down