- From: <bugzilla@jessica.w3.org>
- Date: Thu, 22 Apr 2010 09:45:58 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9579
Summary: An element should not suffer from pattern mismatch if
the pattern attribute value is the empty string
Product: HTML WG
Version: unspecified
Platform: All
URL: http://dev.w3.org/html5/spec/forms.html#attr-input-pat
tern
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: HTML5 spec bugs
AssignedTo: dave.null@w3.org
ReportedBy: mounir.lamouri@gmail.com
QAContact: public-html-bugzilla@w3.org
CC: ian@hixie.ch, mike@w3.org, public-html@w3.org
At the moment, the pattern attribute can be used for constraint validation if
the pattern attribute is specified. So, having pattern="" means the element
will suffer from constraint validation if it has a value different from the
empty string. I think this will lead to misinterpretation, some authors will
probably set the pattern attribute to the empty string to disable it and not to
prevent the user to enter a value. To prevent the user to enter a value, the
'disabled' attribute should be used instead.
It looks like Opera's implementation is following the current spec but Webkit's
implementation isn't checking for constraint validation when the pattern
attribute is the empty string. I think this shows there is an issue here.
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 22 April 2010 09:46:21 UTC