  * 
  */
 
+/**
+ * https://dom.spec.whatwg.org/#interface-nodelist
+ */
 public class NodeList: pNodeList {
   internal var mNodeArray: Array<pNode>
 

    return mNodeArray.map({$0 as! Node}) 
  }

  public var length: ulong {
    return ulong(mNodeArray.count)
  }

  public func item(index: ulong) -> pNode? {
    if index >= length {
      return nil

    return mNodeArray[Int(index)]
  }

  /**
   * iterable<Node>
   */
  subscript(index: Int) -> pNode {
    get {
      return mNodeArray[index]
    }
    set(newValue) {
      mNodeArray[index] = newValue
    }
  }

  public init() {
    mNodeArray = []
  }
