Skip to content

Add iterator in NodeList interface #3381

Closed
@saschanaz

Description

@saschanaz

Would you please add iterator in NodeList interface as DOM4 spec says?

IDL[Exposed=Window]
interface NodeList# {
  getter Node? item(unsigned long index#);
  readonly attribute unsigned long length;
  iterable<Node>;
};
NodeList.prototype[Symbol.iterator]
// gives `function [Symbol.iterator]()` in Firefox console

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions