Index: Source/core/html/HTMLSelectElement.idl |
diff --git a/Source/core/html/HTMLSelectElement.idl b/Source/core/html/HTMLSelectElement.idl |
index 1ad7706b91607dc56c7f4c0e869316b41348945f..0c4f6281a30329aaf4cab4f968d69d2e9f54077a 100644 |
--- a/Source/core/html/HTMLSelectElement.idl |
+++ b/Source/core/html/HTMLSelectElement.idl |
@@ -37,9 +37,8 @@ interface HTMLSelectElement : HTMLElement { |
getter Element item(unsigned long index); |
Element namedItem([Default=Undefined] optional DOMString name); |
- // FIXME: should be union type http://crbug.com/240176 |
- [RaisesException, TypeChecking=Interface] void add(HTMLElement element, optional HTMLElement? before = null); |
- [ImplementedAs=addBeforeOptionAtIndex, RaisesException, TypeChecking=Interface] void add(HTMLElement element, long before); |
+ [RaisesException, TypeChecking=Interface] void add((HTMLOptionElement or HTMLOptGroupElement) element, |
+ optional (HTMLElement or long)? before = null); |
[RaisesException] void remove(); // ChildNode overload |
void remove(long index); |
[RaisesException, TypeChecking=Interface] setter HTMLOptionElement (unsigned long index, HTMLOptionElement? value); |