This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
r5550 made the value attribute required for the "button state" of the input element (input[type='button']) http://html5.org/tools/web-apps-tracker?from=5549&to=5550 http://dev.w3.org/html5/spec/number-state.html#button-state ...but to me at least it does not seem clear from the spec whether the value attribute for this case is allowed to be empty. In other words, if a document contains an instance of <input type=button value=""> then should a conformance checker emit an error message for that instance, or not?
this relates to bug 10710
The spec draws a clear distinction between an attribute being absent and it being present but empty. <input type=button value=''> is perfectly fine.
(In reply to comment #2) > The spec draws a clear distinction between an attribute being absent and it > being present but empty. <input type=button value=''> is perfectly fine. Sorry if my bug description isn't clear. I understand what the difference is between an attribute being absent vs. being present but empty. What I'm asking to have clarified is whether <input type=button value=''> should be fine in this particular case or not. The change that was made for bug 10710 was for the spec to state that "A label for the button must be provided". So I guess the question I'm asking is, do we want the empty string count as a label in this case, or not (should a conformance checker emit an error message if it's empty)?
Good question. I guess we should allow value="" on the basis that sometimes we will fill in the label later, for the same reason we allow empty paragraphs?
(In reply to comment #4) > Good question. I guess we should allow value="" on the basis that sometimes we > will fill in the label later, for the same reason we allow empty paragraphs? Makes sense to me.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diff given below Rationale: Concurred with reporter's comments.
Checked in as WHATWG revision r5902. Check-in comment: Define that <button value=''> (empty) is ok. http://html5.org/tools/web-apps-tracker?from=5901&to=5902
mass-moved component to LC1