mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement HTMLSelectElement.add() and indexed setter, fix test that was relying on add to be a stub
This commit is contained in:
parent
1d645f3741
commit
c1b71fcc4d
7 changed files with 34 additions and 48 deletions
|
@ -28,15 +28,14 @@ interface HTMLSelectElement : HTMLElement {
|
|||
attribute unsigned long length;
|
||||
getter Element? item(unsigned long index);
|
||||
HTMLOptionElement? namedItem(DOMString name);
|
||||
// Note: this function currently only exists for union.html.
|
||||
[CEReactions]
|
||||
|
||||
[CEReactions, Throws]
|
||||
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
[CEReactions]
|
||||
void remove(); // ChildNode overload
|
||||
[CEReactions]
|
||||
void remove(long index);
|
||||
// [CEReactions]
|
||||
// setter void (unsigned long index, HTMLOptionElement? option);
|
||||
[CEReactions, Throws] setter void (unsigned long index, HTMLOptionElement? option);
|
||||
|
||||
// readonly attribute HTMLCollection selectedOptions;
|
||||
attribute long selectedIndex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue