Opera handling of select lists (bug?)

M

Matt Kruse

Example:
http://www.javascripttoolbox.com/temp/opera9_selectbox_bug.html

In Opera 9.x, swapping out option #2 with a new Option() changes the
selected state of other options. This doesn't happen in other browsers, and
seems to be a bug.

I'm wondering - is there anywhere in specs that says this should work as
coded? The behavior obviously doesn't make sense logically, but is Opera
breaking some defined standard behavior, or just convention and logic?
 
M

Michael Winter

Matt said:
Example:
http://www.javascripttoolbox.com/temp/opera9_selectbox_bug.html

In Opera 9.x, swapping out option #2 with a new Option() changes the
selected state of other options. This doesn't happen in other browsers, and
seems to be a bug.

Is this a continuation of a previous issue you had with Opera? I seem to
remember another problem in the past, though I don't recall what it was
precisely, that affected select elements. The demonstration you posted
does affect previous Opera versions.
I'm wondering - is there anywhere in specs that says this should work as
coded? The behavior obviously doesn't make sense logically, but is Opera
breaking some defined standard behavior, or just convention and logic?

As far as I can see, only expectations. No behaviour is explicitly
defined, but one would expect option elements to retain their own state,
thus deleting an option - any option - would not affect the selected
property of any other option.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top