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? https://github.com/WICG/webcomponents/issues/1029
Post
I like the idea. But why not go all in and open this mechanic for arbitrary CSS selectors? Then we could get lifecycle hooks for any element that we wish.
0 reposts3 likes