Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) WF2: Minor tweaks for constraint validation features.
git-svn-id: http://svn.whatwg.org/webapps@2221 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 19, 2008
1 parent d4af437 commit 57268b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
28 changes: 13 additions & 15 deletions index
Expand Up @@ -30892,12 +30892,8 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem

<h5 id=definitions><span class=secno>4.10.15.1. </span>Definitions</h5>

<p>An element is a <dfn id=candidate>candidate for constraint
validation</dfn> if the following conditions apply for that element:

<ul>
<li class=big-issue>...
</ul>
<p class=big-issue>An element is a <dfn id=candidate>candidate for
constraint validation</dfn> ...

<p class=big-issue>An element <dfn id=satisfies
title=concept-fv-valid>satisfies its constraints</dfn> if ...
Expand Down Expand Up @@ -30987,16 +30983,18 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href="#htmlelem
these steps.

<li>
<p>Report the problems with the constraints of at last one of the
<p>Report the problems with the constraints of at least one of the
elements given in <var title="">unhandled invalid controls</var> to the
user. User agents may focus one of those elements in the process. User
agents may report more than one constraint violation. User agents may
coalesce related constraint violation reports if appropriate (e.g. if
multiple radio buttons in a set are marked as required, only one error
need be reported). If one of the controls is not visible to the user
(e.g. it has the <code title=attr-hidden><a
href="#hidden4">hidden</a></code> attribute set) then user agents may
report a script error.
user. User agents may focus one of those elements in the process, by
running the <a href="#focusing">focusing steps</a> for that element, and
may change the scrolling position of the document, or perform some other
action that brings the element to the user's attention. User agents may
report more than one constraint violation. User agents may coalesce
related constraint violation reports if appropriate (e.g. if multiple
radio buttons in a set are marked as required, only one error need be
reported). If one of the controls is not visible to the user (e.g. it
has the <code title=attr-hidden><a href="#hidden4">hidden</a></code>
attribute set) then user agents may report a script error.

<li>
<p>Return a <i>negative</i> result.
Expand Down
20 changes: 9 additions & 11 deletions source
Expand Up @@ -27237,14 +27237,8 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<h5>Definitions</h5>

<p>An element is a <dfn>candidate for constraint validation</dfn> if
the following conditions apply for that element:</p>

<ul>

<li class="big-issue">...</li>

</ul>
<p class="big-issue">An element is a <dfn>candidate for constraint
validation</dfn> ...</p>

<p class="big-issue">An element <dfn
title="concept-fv-valid">satisfies its constraints</dfn> if ...</p>
Expand Down Expand Up @@ -27280,7 +27274,8 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<ol>

<li><p>If <var title="">field</var> is not a <span>candidate for
constraint validation</span>, then move on to the next element.</p></li>
constraint validation</span>, then move on to the next
element.</p></li>

<li><p>Otherwise, if <var title="">field</var> <span
title="concept-fv-valid">satisfies its constaints</span>, then
Expand Down Expand Up @@ -27339,10 +27334,13 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<li><p>If the result was <i>positive</i>, then return that result
and abort these steps.</p></li>

<li><p>Report the problems with the constraints of at last one of
<li><p>Report the problems with the constraints of at least one of
the elements given in <var title="">unhandled invalid
controls</var> to the user. User agents may focus one of those
elements in the process. User agents may report more than one
elements in the process, by running the <span>focusing steps</span>
for that element, and may change the scrolling position of the
document, or perform some other action that brings the element to
the user's attention. User agents may report more than one
constraint violation. User agents may coalesce related constraint
violation reports if appropriate (e.g. if multiple radio buttons in
a set are marked as required, only one error need be reported). If
Expand Down

0 comments on commit 57268b0

Please sign in to comment.