Opera incorrectly reporting explicit empty values of radio buttons/checkboxes

October 17th, 2005

When reading the value attribute of a radio button or a checkbox and that value attribute is explicitely set to an empty value in HTML, Opera (tested 8.5) returns on instead of the empty value.

If you in particular rely on that it returns an empty value because you expect that value serverside its getting problematic.

Testcases

In both cases, value is set to an empty value: value="".

No real workaround so far except browser sniffing/hacking.

Entry Filed under: Browser Woes,Opera

1 Comment Add your own

  • 1. Bill Dimm  |  November 9th, 2005 at 21:22

    You can work around this by using node.getAttribute(‘value’) instead of node.value.

Leave a Comment

hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

October 2005
M T W T F S S
« Sep   Nov »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Most Recent Posts