- From: Andrea Giammarchi <notifications@github.com>
- Date: Thu, 14 Jul 2016 08:58:42 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
- Message-ID: <w3c/webcomponents/issues/509/232709334@github.com>
@Zambonifofex the DOM is old and not perfect, neither is the `is` attribute as solution. However, it solves everything every native HTMLElement has solved during the last 25 years without any need to reinvent the wheel. Moreover, it doesn't require O(n^2) amount of nodes (named custom elements plus eventually native links/input/whatever inside) and also it makes it possible to better integrate with the Web platform. An example over every other, is the bloody `tr` that cannot be wrapped around a `custom-tr` element because it will break and `table` are still the best, semantic, accessible way to display tabular data. TL;DR nobody likes `is` but whoever worked with it will admit is the most pragmatic, easy-peasy, cross platform friendly and working solution we have so that every developer moved forward building great stuff based on such attribute. The previous `x-img` tag goes even further, using CSS like `img[is=x-map], x-map {}` to have common styles for before and after the upgrade which replaces the image with something else that has nothing to do with an image (it's a Leaflet canvas/iframe/different-world) Why not closing this chapter and move forward then, since there are no equivalent solutions that work or that have been even proposed? So please, let's implement `is` and move forward the Web. Thank you! --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/509#issuecomment-232709334
Received on Thursday, 14 July 2016 15:59:38 UTC