///|
/// https://developer.mozilla.org/en-US/docs/Web/API/NodeList
#external
type NodeList

///|
/// https://developer.mozilla.org/en-US/docs/Web/API/NodeList/length
pub extern "js" fn NodeList::get_length(self : Self) -> Double = "(self) => self.length"

///|
/// https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item
pub extern "js" fn NodeList::item(
  self : Self,
  index : Double,
) -> @js.Nullable[Node] = "(self,index) => self.item(index)"

// TODO: Support other methods that return an iterator.