Empty values of radio buttons and checkboxes are "on"

When a radio button or a checkbox has a value="" (empty), Opera nonetheless reports a value="on".

Test page Workaround is not included
Reported by: Markus Fischer.

Opera | Reported on 24 October 2005.

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




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Frenzie on 24 October 2005 | Permalink

This bug is fixed in Opera 9 preview 1 btw.

2 Posted by Bill Dimm on 9 November 2005 | Permalink

I assume that what you mean by "Opera reports value='on'" is when you look at node.value in JavaScript you get "on" instead of "" (but you still get "" passed when you submit the form). That is what I'm seeing with Opera 8.5. You can work around this by using node.getAttribute('value') instead of node.value.

3 Posted by Gérard Talbot on 10 November 2005 | Permalink

This has been fixed in Opera 9 beta 1 build 8031.

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