Closed

Description
Passing null as 'before' should add the option element in front of the list:
SelectElement select = ...
select.add(new OptionElement("hey"), null);
Instead it throws an exception inside HTMLSelectElementImplementation.add:
Invalid class: expected instance HTMLElementImplementation
See also: http://api.dartlang.org/dom/HTMLSelectElement.html
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ghost commentedon Apr 16, 2012
A workaround is:
select.elements.add(new OptionElement(".."));
vsmenon commentedon Jul 12, 2012
Should we remove this method?
Added this to the M1 milestone.
iposva-google commentedon Aug 13, 2012
Removed Area-DOM label.
Added Area-HTML label.
blois commentedon Sep 6, 2012
Set owner to @blois.
Added Accepted label.
blois commentedon Sep 7, 2012
I've removed the add method- the element collection should be used directly.
Added Fixed label.
Bump pub version