"required" attribute tells browser value has to be entered for a given input/select. AFAIK choosing disabled option with no value should generate form validation error.
Created attachment 97175 [details] Testcase for the bug
HTMLSelectElement::hasPlaceHolderLabelOption() checks option->disabled(), but the current specification doesn't ask to check 'disabled' for placeholder label option. I don't remember why we added the option->disabled() check. The specification might have been updated.
Yes, the specification looks like updated. http://www.w3.org/TR/2010/WD-html5-20101019/the-button-element.html#placeholder-label-option says: > If a ... is the empty string, and that option is not disabled, and, finally, that option element's parent node .... http://www.w3.org/TR/2011/WD-html5-20110525/the-button-element.html#placeholder-label-option says: > If a ... is the empty string, and that option element's parent node .... I'll try fixing it.
Created attachment 97409 [details] Patch
Ah, I uploaded the patch from dmikurube@google.com. It's me, dmikurube@chromium.org.
Comment on attachment 97409 [details] Patch ok
Comment on attachment 97409 [details] Patch Clearing flags on attachment: 97409 Committed r89332: <http://trac.webkit.org/changeset/89332>
All reviewed patches have been landed. Closing bug.