by altmind · 7y ago · 0 comments
https://postmaster.mail.ru/amp/playground.html
How they forget there's <style media="..."> and came up with this html non-conformant markup?
`<style amp4email-boilerplate>body{visibility:hidden}</style>`
New templating standard directly in html? They decided not to use DOM or components but just text, damaging the ability to transform the page in runtime and requiring backend processing?
` {{#cart_items}} {{/cart_items}}
{{^cart_items}} {{/cart_items}} `
And amp4email starts with `<html 4email>`, with the emoji? seriously? [I cannot even insert this emoji here at HN]
And regarding the tools... AMP-viewer... Can you actually check if there is anything implemented? i'm perplexed with https://github.com/ampproject/amp-viewer/tree/master/mobile-... - its only 4 source files with no logic inside, last commit 6 months ago... and all its supposedly do is generate iframe with mangled url pointing to amp-project website "https://www-ampproject-org.cdn.ampproject.org/v/s/www.amppro... ? So all the AMP processing is walled out in a propietary service?
And the other amp-viewer mentioned at https://www.ampproject.org/docs/integration/integrate-amphtm... redirects to google corp portal?
https://g3doc.corp.google.com/java/com/google/gws/plugins/am...
I think I know why they're doing this, actually. It's a clever way of ensuring that any services that send, receive, or interact with AMP mail are Unicode-safe. If they can't include a U+26A1 ("HIGH VOLTAGE SIGN") character in the AMP markup, they'll probably mangle any other non-Latin text too.
It was kept in because it is fun, apparently.
You can see what the spec accepts here: https://validator.ampproject.org/#htmlFormat=AMP4EMAIL
Which is a showstopper.
AMP documents display on its own. No need for AMP Viewer. (Example - https://amp.cnn.com/cnn/us/live-news/jussie-smollett-charges...)