Auto merge of #13081 - hsinewu:nodelist-iterable, r=Ms2ger

make nodeList iterable

<!-- Please describe your changes on the following line: -->
Not sure what to test in the script.
Need some advice. o_O

---
<!-- 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 #13021 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes

<!-- 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/13081)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-09-05 09:45:24 -05:00 committed by GitHub
commit 1901a21a2c
3 changed files with 44 additions and 1 deletions

View file

@ -12,5 +12,5 @@ interface NodeList {
getter Node? item(unsigned long index);
[Pure]
readonly attribute unsigned long length;
// iterable<Node>;
iterable<Node?>;
};