*
* @see org.w3c.dom.html.HTMLTableElement#deleteRow(int)
*/
public void deleteRow(int index)
throws DOMException {
HTMLCollection nl = getRows();
if (index == -1) index = nl.getLength()-1;
if (index < 0 || index >= nl.getLength()) {
throw new DOMException(DOMException.INDEX_SIZE_ERR,index+" > "+nl.getLength()+" ,array index out of bound.");
}
for (int i=0;i<nl.getLength();i++) {
Node n = nl.item(i);
if (i == index) {
n.getParentNode().removeChild(n);
break;
}
}