Re: [WICG/webcomponents] The is="" attribute is confusing? Maybe we should encourage only ES6 class-based extension. (#509)

Adding to the pile of reasons to support extending built-in elements, whether it's `is=""` or some other mechanism.

The Hotwired framework depends on the `turbo-frame` custom element to progressively enhance a webpage. However, using it inside a table fails, for the obvious reason (content model).  I figured it could work as a `<tbody is="...">`. And it does! After abstracting the constructor into an constructor factory, able to extend any built-in as a customized built-in, we found it works great. Except in Safari of course where it doesn't work at all.

You can read the PR at https://github.com/hotwired/turbo/pull/131.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/509#issuecomment-1067516870
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/509/1067516870@github.com>

Received on Tuesday, 15 March 2022 03:12:31 UTC