Bug 111469

Summary: TD elements should be HTMLTableDataCellElement and not HTMLTableCellElement
Product: WebKit Reporter: Erik Arvidsson <arv>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: cdumez, haraken
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-td-element

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.