<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11499</bug_id>
          
          <creation_ts>2010-12-08 04:02:43 +0000</creation_ts>
          <short_desc>make clear whether value attribute on input[type=&apos;button&apos;] element can be empty</short_desc>
          <delta_ts>2011-08-04 05:01:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bhawkeslewis</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>james</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43183</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-12-08 04:02:43 +0000</bug_when>
    <thetext>r5550 made the value attribute required for the &quot;button state&quot; of the input element (input[type=&apos;button&apos;])

http://html5.org/tools/web-apps-tracker?from=5549&amp;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 &lt;input type=button value=&quot;&quot;&gt; then should a conformance checker emit an error message for that instance, or not?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43184</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-12-08 04:03:35 +0000</bug_when>
    <thetext>this relates to bug 10710</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43185</commentid>
    <comment_count>2</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2010-12-08 04:14:46 +0000</bug_when>
    <thetext>The spec draws a clear distinction between an attribute being absent and it being present but empty.  &lt;input type=button value=&apos;&apos;&gt; is perfectly fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43186</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-12-08 04:39:46 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The spec draws a clear distinction between an attribute being absent and it
&gt; being present but empty.  &lt;input type=button value=&apos;&apos;&gt; is perfectly fine.

Sorry if my bug description isn&apos;t clear. I understand what the difference is between an attribute being absent vs. being present but empty. What I&apos;m asking to have clarified is whether &lt;input type=button value=&apos;&apos;&gt; should be fine in this particular case or not.

The change that was made for bug 10710 was for the spec to state that &quot;A label for the button must be provided&quot;. So I guess the question I&apos;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&apos;s empty)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44115</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-01-11 06:26:33 +0000</bug_when>
    <thetext>Good question. I guess we should allow value=&quot;&quot; on the basis that sometimes we will fill in the label later, for the same reason we allow empty paragraphs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44322</commentid>
    <comment_count>5</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-01-13 14:09:10 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Good question. I guess we should allow value=&quot;&quot; on the basis that sometimes we
&gt; will fill in the label later, for the same reason we allow empty paragraphs?

Makes sense to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45745</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-02-17 02:03:40 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45746</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-02-17 02:05:15 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5902.
Check-in comment: Define that &lt;button value=&apos;&apos;&gt; (empty) is ok.
http://html5.org/tools/web-apps-tracker?from=5901&amp;to=5902</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52466</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:01:44 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>