You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When running some tests I found that PreMailer removes the closing '/' from an IMG tag.
This causes XHTML validation to fail on the resulting Html.
<img src="myPic.png" style="padding-bottom: 5px;"> (The closing / is removed by PreMailer)
UPDATE: It appears that the closing slash is removed from all self closing tags (img, br, col, input etc) - This causes a problem when the output html is required to be XHTML compliant.
Thanks
Gary
The text was updated successfully, but these errors were encountered:
PreMailer makes use of AngleSharp. This answer on SO from Florian Rappl - the author of AngleSharp - gives an answer why things are like you described. This one may help as well.
Hi,
When running some tests I found that PreMailer removes the closing '/' from an IMG tag.
This causes XHTML validation to fail on the resulting Html.
e.g.
after parsing, the img tag becomes
<img src="myPic.png" style="padding-bottom: 5px;">
(The closing / is removed by PreMailer)UPDATE: It appears that the closing slash is removed from all self closing tags (img, br, col, input etc) - This causes a problem when the output html is required to be XHTML compliant.
Thanks
Gary
The text was updated successfully, but these errors were encountered: