- From: poot <cvsmail@w3.org>
- Date: Fri, 15 Jul 2011 18:11:48 -0400
- To: public-html-diffs@w3.org
hixie: Try to clarify some of the conformance requirements around pattern=''. (whatwg r6309) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5040&r2=1.5041&f=h http://html5.org/tools/web-apps-tracker?from=6308&to=6309 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5040 retrieving revision 1.5041 diff -u -d -r1.5040 -r1.5041 --- Overview.html 15 Jul 2011 20:40:04 -0000 1.5040 +++ Overview.html 15 Jul 2011 22:11:19 -0000 1.5041 @@ -36054,12 +36054,16 @@ 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><p>When an <code><a href="#the-input-element">input</a></code> element has a <code title="attr-input-pattern"><a href="#attr-input-pattern">pattern</a></code> attribute specified, authors should include a <code title="attr-title"><a href="#the-title-attribute">title</a></code>
Received on Friday, 15 July 2011 22:11:49 UTC