Closed arcadegio closed 6 years ago
This is in fact a feature, not a bug :)
It's meant to trick the Yahoo! app, as this client will strip out the first <head>
tag it finds, thus removing the CSS and completely breaking the layout. Feeding it an empty one first will trick it into removing that, while keeping the actual <head>
that the framework uses.
I've tested this myself and it doesn't cause any problems in any of the major email clients. Have you tested and found one that is affected by this hack?
I was about to respond with that! Thanks, @hellocosmin! This is documented really well by mosaico
Awesome. Thanks for the clarification.
Ran this through Litmus and everything came up blank until I stripped out the blank <head></head>
https://litmus.com/builder/c540f0b
Probably a bug on their end :)
Yup, Litmus Builder bug, works fine in Email on Acid's editor, as well as in the browser and major email clients that I've tested :)
Perfect. Thanks!
The double <head>
breaks Cleverreachs drag'n'drop email editor.
https://heml.io/editor/
On the editor page, demo HEML content:
Produces an additional opening
<head>
and closing</head>
elements:This causes improper syntax which email clients will not render the second
element with content in it.