4 ms·
This is cool and certainly useful but I have concerns. Forgetting for a moment that this is a shim and imagining that all browsers support this natively, isn't
by bpatrianakos 13y ago
This is cool and certainly useful but I have concerns. Forgetting for a moment that this is a shim and imagining that all browsers support this natively, isn't this sort of thing outside the intended purpose of html. Html should describe content not styling and this sort of thing seems ripe for abuse. I thought XML was the markup language for describing custom data. Adding the ability to create your own DOM elements for the purpose of using them as hooks for interactivity and styling seems like something that should be avoided in HTML.
Am I being a too much of a purist or overlooking something here?
- WayneDB 13y agoI'd rather say <x-calendar/> than <div><div><div></div></div></div>.
- deleted 13y ago[deleted]
- k3n 13y agoIsn't that pretty much the M.O. of Angular? Not that it makes it right or wrong, but this just seems like a different take on the same (or similar) concepts.
- jnbiche 13y agoThe web components spec is precisely what AngularJS has been anticipating since Angular's inception. I believe the idea was (and still may be) to integrate web components once they are officially adopted by the major browsers.
- pennyfx1001 13y agoWeb Components is an active W3 spec. http://www.w3.org/TR/2013/WD-components-intro-20130606/ http://www.w3.org/TR/2013/WD-components-intro-20130606/ All browsers are going to support Web Components eventually and it is going to greatly expand what we thought HTML should or shouldn't do. I think Chrome Chrome Canary has an implementation behind a flag and FF is actively working on it as well.
- deleted 13y ago[deleted]
- csuwldcat 13y agoYou're overlooking that the underlying technology - Web Components - is landing as a standard as we speak in both Firefox and Chrome. The idea that creating custom elements is inherently bad is an urban legend - there is no empirical basis for such a claim. Additionally, you are mixing metaphors, Custom Elements are not meant to describe data, they are meant to create new, active UI components and other useful tags.
- spankalee 13y agoWell, you could use such tags to describe data directly in the markup. I'll think we'll see two definite camps on that issue. Of course, what's data?