How we built it

Iterable NodeList

Add Symbol.iterator method to NodeList, as well as methods "keys()", "values()", "entries()" and "forEach()". This will allow NodeList to be traversed via ES6 iteration statements `for (let node of document.querySelectorAll('.my-class') { ... }`, or via `document.querySelectorAll('.my-class').forEach(node => { ... }`.

Documentation

Specification

Working draft or equivalent

Status in Chromium

Proposed

Consensus & Standardization

  • No public signals
  • No public signals
  • No public signals
  • No signals

Owner

Last updated on 2015-09-23