aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLSelectElement.webidl
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-09-22 13:14:27 -0500
committerGitHub <noreply@github.com>2016-09-22 13:14:27 -0500
commitd74f6adf54b22b4fe8429e0c7ba5327e58818286 (patch)
treea1224c58ec0cac596b98362b1d62a177b275d433 /components/script/dom/webidls/HTMLSelectElement.webidl
parentb86420d693d411a0d42a07574dbf4b2f867d0e28 (diff)
parent670693ba7ed62081db5dc7accec1020cf5d71a1a (diff)
downloadservo-d74f6adf54b22b4fe8429e0c7ba5327e58818286.tar.gz
servo-d74f6adf54b22b4fe8429e0c7ba5327e58818286.zip
Auto merge of #13066 - mskrzypkows:htmlselect_index, r=KiChjang
Implement indexed access on select elements <!-- Please describe your changes on the following line: --> Added methods for indexed access on select: SetLength, Length, Item, IndexedGetter --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #11763 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13066) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/webidls/HTMLSelectElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLSelectElement.webidl4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webidls/HTMLSelectElement.webidl b/components/script/dom/webidls/HTMLSelectElement.webidl
index ba84d183a72..b513806f965 100644
--- a/components/script/dom/webidls/HTMLSelectElement.webidl
+++ b/components/script/dom/webidls/HTMLSelectElement.webidl
@@ -15,8 +15,8 @@ interface HTMLSelectElement : HTMLElement {
readonly attribute DOMString type;
//readonly attribute HTMLOptionsCollection options;
- // attribute unsigned long length;
- //getter Element? item(unsigned long index);
+ attribute unsigned long length;
+ getter Element? item(unsigned long index);
//HTMLOptionElement? namedItem(DOMString name);
// Note: this function currently only exists for union.html.
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);