Skip to content

Commit

Permalink
[e] (0) Try to clarify some of the conformance requirements around pa…
Browse files Browse the repository at this point in the history
…ttern=''.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12555

git-svn-id: http://svn.whatwg.org/webapps@6309 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 15, 2011
1 parent f12015b commit 9b79b2d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
10 changes: 7 additions & 3 deletions complete.html
Expand Up @@ -47778,12 +47778,16 @@ <h6 id=the-pattern-attribute><span class=secno>4.10.7.2.9 </span>The <code title
entirety of each of the element's <a href=#concept-fe-values title=concept-fe-values>value<em>s</em></a>, then the element
is <a href=#suffering-from-a-pattern-mismatch>suffering from a pattern mismatch</a>.</p>

<p>The <a href=#compiled-pattern-regular-expression>compiled pattern regular expression</a>, when
matched against a string, must have its start anchored to the start
of the string and its end anchored to the end of the string.</p>

<p class=note>This implies that the regular expression language
used for this attribute is the same as that used in JavaScript,
except that the <code title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code>
attribute must match the entire value, not just any subset (somewhat
as if it implied a <code title="">^(?:</code> at the start of the
pattern and a <code title="">)$</code> at the end).</p>
attribute is matched against the entire value, not just any subset
(somewhat as if it implied a <code title="">^(?:</code> at the start
of the pattern and a <code title="">)$</code> at the end).</p>

</div>

Expand Down
10 changes: 7 additions & 3 deletions index
Expand Up @@ -47650,12 +47650,16 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
entirety of each of the element's <a href=#concept-fe-values title=concept-fe-values>value<em>s</em></a>, then the element
is <a href=#suffering-from-a-pattern-mismatch>suffering from a pattern mismatch</a>.</p>

<p>The <a href=#compiled-pattern-regular-expression>compiled pattern regular expression</a>, when
matched against a string, must have its start anchored to the start
of the string and its end anchored to the end of the string.</p>

<p class=note>This implies that the regular expression language
used for this attribute is the same as that used in JavaScript,
except that the <code title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code>
attribute must match the entire value, not just any subset (somewhat
as if it implied a <code title="">^(?:</code> at the start of the
pattern and a <code title="">)$</code> at the end).</p>
attribute is matched against the entire value, not just any subset
(somewhat as if it implied a <code title="">^(?:</code> at the start
of the pattern and a <code title="">)$</code> at the end).</p>

</div>

Expand Down
10 changes: 7 additions & 3 deletions source
Expand Up @@ -53431,12 +53431,16 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
title="concept-fe-values">value<em>s</em></span>, then the element
is <span>suffering from a pattern mismatch</span>.</p>

<p>The <span>compiled pattern regular expression</span>, when
matched against a string, must have its start anchored to the start
of the string and its end anchored to the end of the string.</p>

<p class="note">This implies that the regular expression language
used for this attribute is the same as that used in JavaScript,
except that the <code title="attr-input-pattern">pattern</code>
attribute must match the entire value, not just any subset (somewhat
as if it implied a <code title="">^(?:</code> at the start of the
pattern and a <code title="">)$</code> at the end).</p>
attribute is matched against the entire value, not just any subset
(somewhat as if it implied a <code title="">^(?:</code> at the start
of the pattern and a <code title="">)$</code> at the end).</p>

</div>

Expand Down

0 comments on commit 9b79b2d

Please sign in to comment.