We have Custom Elements, but do we also need Custom Attributes?
This was discussed at TPAC. Is it something you'd like on the platform?
We have Custom Elements, but do we also need Custom Attributes?
This was discussed at TPAC. Is it something you'd like on the platform?
@FirefoxDevTools similar to this idea, but slightly different, is the idea of element controllers, where an attribute is used to attach functionality to an element, for example https://github.com/DarkWiiPlayer/controller-registry
I would love this, as I often end up making custom elements that wrap some element in order to add functionality to it
@FirefoxDevTools Yes! I would very much welcome this, assuming all browsers end up supporting it. It would get us past the impasse of webkit not supporting `is`, while also allowing composition of behaviors from multiple custom attributes.
I currently use `is` extensively, but always have to ship the polyfill for webkit. I would happily refactor as custom attributes and drop that polyfill.
@FirefoxDevTools e.g. something like adding a material design ripple effect to any element, without having to wrap it in another element just for this effect.
@FirefoxDevTools @jaffathecake
That t-shirt looks great on you, Jake. Fab! Love it.