Closed Bug 797372 Opened 8 years ago Closed 8 years ago

"TypeError: Value not an object" when assigning null or undefined to an option

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED DUPLICATE of bug 797113

People

(Reporter: glob, Unassigned)

Details

Attachments

(1 file)

Attached file testcase
it used to be possible to remove an option from a select by assigning it to null.  this now throws an error -- "TypeError: Value not an object".

  document.getElementById('some_select').options[0] = null;

this works in all other browsers, as well as firefox 15.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Component: JavaScript Engine → DOM: Core & HTML
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → DUPLICATE
Duplicate of bug: 797113
You need to log in before you can comment on or make changes to this bug.