throw new DOMException(DOMException.INDEX_SIZE_ERR,index+" > "+nl.getLength()+" ,array index out of bound.");
}
if (nl.getLength() == 0) {
CHTMLTbodyElement body = new CHTMLTbodyElement(ownerDocument);
appendChild(body);
body.appendChild(tr);
} else {
boolean inserted = false;
Node lastNode = null;
for (int i=0;i<nl.getLength();i++) {
Node n = nl.item(i);