RESOLVED DUPLICATE of bug 148859 111469
TD elements should be HTMLTableDataCellElement and not HTMLTableCellElement
https://bugs.webkit.org/show_bug.cgi?id=111469
Summary TD elements should be HTMLTableDataCellElement and not HTMLTableCellElement
Erik Arvidsson
Reported 2013-03-05 12:54:51 PST
tr elements have the wrong prototype/constructor var tr = document.createElement('tr'); assert(tr instanceof HTMLTableDataCellElement); assert(tr.constructor === HTMLTableDataCellElement); assert(Object.getPrototypeOf(tr) === HTMLTableDataCellElement.prototype);
Attachments
Erik Arvidsson
Comment 1 2013-03-05 12:58:43 PST
IE gets this right
Erik Arvidsson
Comment 2 2013-03-05 13:01:53 PST
Sorry. "td" var td = document.createElement('td'); assert(td instanceof HTMLTableDataCellElement); assert(td.constructor === HTMLTableDataCellElement); assert(Object.getPrototypeOf(td) === HTMLTableDataCellElement.prototype);
Chris Dumez
Comment 3 2015-10-16 16:38:00 PDT
*** This bug has been marked as a duplicate of bug 148859 ***
Note You need to log in before you can comment on or make changes to this bug.