<?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>10290</bug_id>
          
          <creation_ts>2010-08-03 18:47:28 +0000</creation_ts>
          <short_desc>The type attribute needs to be restricted to only known values to match browser behavior.</short_desc>
          <delta_ts>2010-10-04 14:48:20 +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>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-button-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</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>37216</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-03 18:47:28 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#the-button-element

Comment:
The type attribute needs to be restricted to only known values to match
browser behavior.

Posted from: 68.175.61.233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37217</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-08-03 18:51:28 +0000</bug_when>
    <thetext>Test case:

data:text/html,&lt;!doctype html&gt;
 &lt;script&gt;
 alert(document.createElement(&apos;button&apos;).type);
 &lt;/script&gt;

Should alert &quot;&quot; per spec, actually alerts &quot;submit&quot;.  Likewise:

data:text/html,&lt;!doctype html&gt;
 &lt;script&gt;
 var el = document.createElement(&apos;button&apos;);
 el.type = &apos;foo&apos;;
 alert(el.type);
 &lt;/script&gt;

Should alert &quot;foo&quot;, actually alerts &quot;submit&quot;.  Tested in Firefox 4, Chrome dev, Opera 10.60.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37219</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-08-03 19:00:06 +0000</bug_when>
    <thetext>*** Bug 10289 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37273</commentid>
    <comment_count>3</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-08-06 19:41:30 +0000</bug_when>
    <thetext>http://html5.org/tools/web-apps-tracker?from=5244&amp;to=5245</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37274</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-08-06 20:00:51 +0000</bug_when>
    <thetext>FIXED seems more appropriate than WORKSFORME, no?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>