3 ms·
There may be some technical grievances with the standard too. https://postmaster.mail.ru/amp/playground.html https://postmaster.mail.ru/amp/playground.html Ho
by altmind 8y ago
There may be some technical grievances with the standard too.
https://postmaster.mail.ru/amp/playground.html 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-web 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.ampproject.org/?amp_js_v=0.1#origin=http%3A%2F%2Flocalhost%3A8000" 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-amphtml-email https://www.ampproject.org/docs/integration/integrate-amphtm... redirects to google corp portal?
https://g3doc.corp.google.com/java/com/google/gws/plugins/amp/g3doc/index.md?cl=head https://g3doc.corp.google.com/java/com/google/gws/plugins/am...
- bitpush 8y ago> And regarding the tools... AMP-viewer AMP documents display on its own. No need for AMP Viewer. (Example - https://amp.cnn.com/cnn/us/live-news/jussie-smollett-charges/index.html https://amp.cnn.com/cnn/us/live-news/jussie-smollett-charges...)
- altmind 8y agoI see that https://www.google.com/amp/s/amp.cnn.com/cnn/2019/03/26/entertainment/jussie-smollett-charges-dropped/index.html https://www.google.com/amp/s/amp.cnn.com/cnn/2019/03/26/ente... redirects desktop browser to https://amp.cnn.com/cnn/us/live-news/jussie-smollett-charges/index.html https://amp.cnn.com/cnn/us/live-news/jussie-smollett-charges... even with user agent spoofing. I'm not getting here the content that a mobile user will get.
- duskwuff 8y ago> And amp4email starts with `<html 4email>`, with the emoji? seriously? [I cannot even insert this emoji here at HN] 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.
- gregable 8y agoActually, the spec accepts both `<html emoji-4email>` and just `<html amp4email>`. You can see what the spec accepts here: https://validator.ampproject.org/#htmlFormat=AMP4EMAIL https://validator.ampproject.org/#htmlFormat=AMP4EMAIL
- IanCal 8y agoIt was brought up a long time ago that it was not valid HTML around the earlier days of the AMP project - https://github.com/ampproject/amphtml/issues/472 https://github.com/ampproject/amphtml/issues/472 It was kept in because it is fun, apparently.
- kevingadd 8y agoAMP not being html or conformant is the point. It's a google dialect of HTML that they control that isn't compatible with anything else unless you load their JS.
- JohnFen 8y ago> unless you load their JS Which is a showstopper.