- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 15 Jul 2011 22:11:22 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv27399 Modified Files: Overview.html Log Message: Try to clarify some of the conformance requirements around pattern=''. (whatwg r6309) Index: Overview.html =================================================================== 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:24 UTC