diff options
author | Alexandrov Sergey <splavgm@gmail.com> | 2016-09-22 21:10:38 +0300 |
---|---|---|
committer | Alexandrov Sergey <splavgm@gmail.com> | 2016-09-26 21:49:10 +0300 |
commit | cf284cc03557d3c6bf4c4f517e36059b3f232c86 (patch) | |
tree | 7f7c7ed9b547acf23023218ca64353173aa418ba /components/script/dom/webidls/HTMLOptionsCollection.webidl | |
parent | 6bda47100756a22233cf9c86d4d449d262e6736c (diff) | |
download | servo-cf284cc03557d3c6bf4c4f517e36059b3f232c86.tar.gz servo-cf284cc03557d3c6bf4c4f517e36059b3f232c86.zip |
implement HTMLOptionsCollection and add related items to HTMLSelectElement
Diffstat (limited to 'components/script/dom/webidls/HTMLOptionsCollection.webidl')
-rw-r--r-- | components/script/dom/webidls/HTMLOptionsCollection.webidl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/script/dom/webidls/HTMLOptionsCollection.webidl b/components/script/dom/webidls/HTMLOptionsCollection.webidl new file mode 100644 index 00000000000..0451647b981 --- /dev/null +++ b/components/script/dom/webidls/HTMLOptionsCollection.webidl @@ -0,0 +1,19 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// https://html.spec.whatwg.org/multipage/#htmloptionscollection +[Exposed=(Window,Worker)] +interface HTMLOptionsCollection : HTMLCollection { + // inherits item(), namedItem() + attribute unsigned long length; // shadows inherited length + //[CEReactions] + [Throws] + setter void (unsigned long index, HTMLOptionElement? option); + //[CEReactions] + [Throws] + void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null); + //[CEReactions] + void remove(long index); + //attribute long selectedIndex; +}; |