Hacker News new | ask | show | jobs
by floatboth 3301 days ago
Custom Elements are a web standard. Anyone can just make up new tags, if they include a hyphen in the name. And with customElements.define() you can attach an ES6 class to that element and boom, DOM as an open component model.

AMP is a subset because in addition to the elements, they provide a set of restrictions that would make your page "valid AMP" and cached by Google's creepy CDN thingy.