Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

td's aren't instances of HTMLTableCellElement #80

Closed
jakemac53 opened this issue Dec 1, 2014 · 3 comments
Closed

td's aren't instances of HTMLTableCellElement #80

jakemac53 opened this issue Dec 1, 2014 · 3 comments

Comments

@jakemac53
Copy link
Contributor

When under the polyfill, td's aren't instances of HTMLTableCellElement. It looks like this has been broken for a while

// 'td': 'HTMLTableCellElement',
. Is there anything we can do about it?

Specifically this causes an issue on the dart side of things, because dart:html actually verifies the base class is of the expected type when registering an element. We might be able to put an exception in for td if it comes to that though....

@jakemac53
Copy link
Contributor Author

http://jsbin.com/jetemasara/1/edit is an example of this (works in chrome, doesn't in FF)

@jmesserly
Copy link
Contributor

technically should be an HTMLTableDataCellElement:
https://html.spec.whatwg.org/multipage/tables.html#the-td-element

I'm not sure if any browsers implement that subtype except IE. The bugs the code linked too are still open. Since browsers are inconsistent, not sure what the polyfill should do. I suppose it could polyfill that interface for Chrome/Safari/Firefox, bringing them up to spec. Or alternatively emulate the bugged behavior on IE. Not sure what is best.

FWIW, I don't think Dart should be relying on these kind of details...

@TimvdLippe
Copy link
Contributor

http://jsbin.com/jetemasara/1/edit?html,output appears to be working in both Chrome and Firefox now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants