Bug 111469
Summary: | TD elements should be HTMLTableDataCellElement and not HTMLTableCellElement | ||
---|---|---|---|
Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
Component: | DOM | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Erik Arvidsson
IE gets this right
Erik Arvidsson
Sorry. "td"
var td = document.createElement('td');
assert(td instanceof HTMLTableDataCellElement);
assert(td.constructor === HTMLTableDataCellElement);
assert(Object.getPrototypeOf(td) === HTMLTableDataCellElement.prototype);
Chris Dumez
*** This bug has been marked as a duplicate of bug 148859 ***