by SquareWheel · 7y ago · 0 comments
This is another misunderstanding. HTML allows custom tags. This is built into the spec. AMP is plain and regular, standards-compliant HTML.
>unversioned CDN
Isn't the filename versioned (v0.js)?
I guess v0 might imply "beta" and thus not have stable API naming yet. But still, it's clearly being used in production at this point.
An img tag doesn't work on an AMP page. It has to be an amp-img. Every standard HTML tag is invalid in AMP content, as you must use a customized AMP flavor of HTML.
Whether or not it returns valid as HTML markup isn't really relevant: The point is it's an entirely different, incompatible, markup, from what a normal browser knows how to interpret and use, and if your browser doesn't have JavaScript, it's not even going to know what any of those custom tags are, is it?
>if your browser doesn't have JavaScript, it's not even going to know what any of those custom tags are, is it?
It wouldn't. <noscript> tags are needed for that. But Javascript is a web standard, and this is the correct way to create new elements.