3 ms·
> 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, act
by 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.