This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
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.
*** Bug 10289 has been marked as a duplicate of this bug. ***
http://html5.org/tools/web-apps-tracker?from=5244&to=5245
FIXED seems more appropriate than WORKSFORME, no?