Skip to content

Listing iterable DOM interfaces #1

Closed
@saschanaz

Description

@saschanaz

DOM4 DOMTokenList

interface DOMTokenList {
  readonly attribute unsigned long length;
  getter DOMString? item(unsigned long index);
  boolean contains(DOMString token);
  void add(DOMString... tokens);
  void remove(DOMString... tokens);
  boolean toggle(DOMString token, optional boolean force);
  stringifier;
  iterable<DOMString>;
};

DOM4 NodeList: NodeList, NodeListOf

IDL[Exposed=Window]
interface NodeList# {
  getter Node? item(unsigned long index#);
  readonly attribute unsigned long length;
  iterable<Node>;
};

Note - The following interfaces are removed in DOM4 spec so are not listed here:

DOMStringList

Note 2 - The following interfaces are iterable in Firefox, but are they in spec?:

CSSRuleList
CSSStyleDeclaration
FileList
HTMLCollection
MediaList
MimeTypeArray
NamedNodeMap
Plugin
PluginArray
StyleSheetList

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions