[whatwg/dom] iterable declaration on NodeList is invalid (#284)

NodeList has:

    getter Node? item(unsigned long index);
    iterable<Node>;

but http://heycam.github.io/webidl/#idl-iterable says:

> A value iterator MUST only be declared on an interface that supports indexed properties and has an integer-typed attribute named “length”. The value-type of the value iterator MUST be the same as the type returned by the indexed property getter.

In this case the types are different: one is `Node` and the other is `Node?`.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/284

Received on Friday, 29 July 2016 04:16:00 UTC