Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Unified Diff: Source/core/html/HTMLSelectElement.idl

Issue 213773003: select.add() should support optgroup adding and before index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLSelectElement.idl
diff --git a/Source/core/html/HTMLSelectElement.idl b/Source/core/html/HTMLSelectElement.idl
index 658e9918f3f82d8a1495b94dc29a9776ae1f5941..6dea66e2cb6cb9ed4ccf1b84a21f4e344cccd688 100644
--- a/Source/core/html/HTMLSelectElement.idl
+++ b/Source/core/html/HTMLSelectElement.idl
@@ -38,6 +38,8 @@ interface HTMLSelectElement : HTMLElement {
Element namedItem([Default=Undefined] optional DOMString name);
[RaisesException] void add([Default=Undefined] optional HTMLElement element,
[Default=Undefined] optional HTMLElement before);
+ [RaisesException, ImplementedAs=addBeforeOptionAtIndex] void add([Default=Undefined] optional HTMLElement element,
+ [Default=Undefined] optional long before);
void remove(long index);
[RaisesException] void remove();
readonly attribute HTMLCollection selectedOptions;
« Source/core/html/HTMLSelectElement.h ('K') | « Source/core/html/HTMLSelectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698