Re:Please Make Google AMP Optional
by kahnpro on Sunday June 11, 2017 @07:42AM
(#14531580)
How can it be called an HTML subset when they've introduced custom tags like "amp-img"?
[ Parent
| on HN ]
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.