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 is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(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.