-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Void elements are no longer closed when using xhtml #161
Comments
Opened in 2016, no response? Where are people using this CSS inliner for, other than email? So this is a serious matter, because despite it's 2020 the safest, most used DOCTYPE is still XHTML 1.0 Transitional which requires slashes on self-closing (void) tags. Anyone know of an alternative CSS inliner that does respect these tags, allowing for email templates that actually validate? |
Did you try submitting a PR? |
Was this not fixed with #154 ? |
@barryvdh I did not submit a PR because... I don't have a fix ;-) |
I think I went with Pelago/Emogrifier, but looking at the code, it seems I'm also post-processing br, meta and img tags to make them self-closing.
|
@zmip thanks for response. Yeah look like post-processing is only way for now. |
With version 2.2.0, void elements are no longer closed when using
xhtml
doctype.The following document
Will be converted into this:
Notice that the void elements (
meta
,img
,br
,hr
) are not closed according to thexhtml
standard. The/
at the end of the elements are removed, even though the doctype isxhtml
.The text was updated successfully, but these errors were encountered: