Get the latest tech news
A better HTML input experience (custom elements and the AOM) (2017)
Hi, I'm Rob. I write about front-end development and accessibility.
For an individual element this isn't so bad, but if you have hundreds of controls (perhaps inside of a table or list), having each of them call setAttribute() multiple times at startup could lead to a performance bottleneck. Because custom elements still require JavaScript to boot up there are still open questions around progressive enhancement, but my hope is that increasingly exposing primitives will help us find other ways to solve that issue. We would love help landing all of the ARIA Authoring Practices examples as custom elements and plan to push things even further in future quarters by exploring more complex widget types.
Or read this on Hacker News