[Bug 10290] The type attribute needs to be restricted to only known values to match browser behavior.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10290


Aryeh Gregor <Simetrical+w3cbug@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Simetrical+w3cbug@gmail.com




--- Comment #1 from Aryeh Gregor <Simetrical+w3cbug@gmail.com>  2010-08-03 18:51:28 ---
Test case:

data:text/html,<!doctype html>
 <script>
 alert(document.createElement('button').type);
 </script>

Should alert "" per spec, actually alerts "submit".  Likewise:

data:text/html,<!doctype html>
 <script>
 var el = document.createElement('button');
 el.type = 'foo';
 alert(el.type);
 </script>

Should alert "foo", actually alerts "submit".  Tested in Firefox 4, Chrome dev,
Opera 10.60.

-- 
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 Tuesday, 3 August 2010 18:51:30 UTC