 
   internal var mArray: Array<pElement> = []
   
+  /**
+   * https://dom.spec.whatwg.org/#dom-htmlcollection-length
+   */
   public var length: ulong {
     return ulong(self.mArray.count)
   }
 
+  /**
+   * https://dom.spec.whatwg.org/#dom-htmlcollection-item
+   */
   public func item(index: ulong) -> pElement? {
     if index >= self.length {
       return nil

    return mArray[Int(index)]
  }

  public func namedItem(name: DOMString) -> pElement? {
    let index = mArray.indexOf({ return $0.getAttribute("id") == name})
    if nil != index {
      return mArray[index!]
    }
    return nil
  }

  init() {}

 * 
 */

/**
 * https://dom.spec.whatwg.org/#interface-htmlcollection
 */
public class HTMLCollection: pHTMLCollection {

  internal func append(element: pElement) -> Void {
