Setting pattern to "" makes any value valid. http://jsfiddle.net/z7tb9/
Confirmed.
Created attachment 149638 [details] Patch
Comment on attachment 149638 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=149638&action=review Good fix. Need to do it slightly differently, though. > Source/WebCore/html/BaseTextInputType.cpp:44 > - if (rawPattern.isEmpty() || value.isEmpty()) > + if (!element()->fastHasAttribute(patternAttr) || value.isEmpty()) The correct way to check this is: if (rawPattern.isNull() || value.isEmpty()) There’s no need for a fastHasAttribute call, which will do another attribute hash table lookup.
Created attachment 149830 [details] Patch Fixed the test condition per Darin's helpful comments.
Comment on attachment 149830 [details] Patch Looks nice. Thank you!
Comment on attachment 149830 [details] Patch Clearing flags on attachment: 149830 Committed r121401: <http://trac.webkit.org/changeset/121401>
All reviewed patches have been landed. Closing bug.