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

I think there are very clear demonstrable capabilities that native controls
have that are either difficult or in some cases entirely impossible to shim
or otherwise create in our Javascript.

The most obvious example is the way in which a select dropdown, or indeed a
datalist on platforms that support it, can exist beyond the browser window.

(Short of some truly horrendous late 90s / early 00s hack of using a
chromeless pop-up, I dont think there's anyway to come close to mimicing
that behaviour.)

Now you might argue that the <select> is fine and doesn't need enhancing,
or that it could be enhanced in some other way than by extension of the
native class.

It's a bit trickier with <datalist> though. The implementations that exist
of a datalist bound to input vary, and the matching algorithm basically
sucks everywhere.

It would be awesome to be able to write a custom match algorithm for
datalist.



On 19 Feb 2017 17:41, "Ole Ersoy" <notifications@github.com> wrote:

> Extending natives should be a simple addition to a Custom Element
> declaration/definition
>
> This is not a simple self contained example. You are starting with the
> technology first and making the assumption that your solution is a great
> one. That may be, but start with the end goal (simple end result example
> first) and work backwards to the solution. I would start with simple
> examples illustrating the meaningful work that you want to do.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/webcomponents/issues/509#issuecomment-280934693>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAIGbyav1B_GLSe_kcfAlHHFI74dlHisks5reH6_gaJpZM4Iq2sA>
> .
>


-- 
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-280937039

Received on Sunday, 19 February 2017 18:17:53 UTC