- From: <bugzilla@jessica.w3.org>
- Date: Fri, 30 Apr 2010 10:45:26 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9626 Summary: Elements which can't match :required rule should not match :optional pseudo-class Product: HTML WG Version: unspecified Platform: All URL: http://www.w3.org/TR/html5/interactive-elements.html#s elector-optional 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 The :optional pseudo-class matches: - button elements - input elements that are not required - select elements - textarea elements that do not have a required attribute I see two possible behavior for :optional: 1. it considers every "interactive" elements the user can fill which are not required ; 2. it considers only elements which can be required but don't have the required attribute specified. At the moment, the optional pseudo-class doesn't seem to follow any of this rule. Indeed, "button" isn't an element the user can fill so, show it as "optional" sounds weird. The same way, "input elements that are not required" should be changed to "input elements for which the required attribute applies but without the required attribute specified" so button, hidden, image, reset and submit input types don't match the rule. The difference between behavior 1 and behavior 2 is the the select element and I'm wondering why it can't be required. It sounds reasonable to let it matches :optional but it should be great to have it matches :required too. See bug 9625. To summarize, button elements should not match the :optional pseudo-class nor input elements for which the required attribute doesn't apply. -- 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 Friday, 30 April 2010 10:45:27 UTC