Changing the type of an input field

Setting the type attribute of an input element to button via setAttribute('type', 'button') does not work in Internet Explorer 6 or Opera 8.51. The bug is fixed in Opera 9 technology preview 1.

Test page Workaround is included
Reported by: Stijn Peeters.

Explorer 5-6 Windows, Explorer 7 beta, Explorer Mac, Opera | Reported on 2 January 2006.

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

Comments

(Add your own)

1 Posted by Stijn Peeters on 4 January 2006

I noticed clicking an input field which was changed from [something] to "button" actually crashes Opera 8.52 :-/

2 Posted by Tom on 8 February 2006

I have posted a more robust workaround at http://alt-tag.com/blog/archives/2006/02/ie-dom-bugs/

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes