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
I used premailer==3.6.1 on the project. And the html which is passed to transform method has self-enclosing tags but premailer turns them in tags omitted end tag.
I would not notice that but I used https://validator.w3.org/ for checking result html
For example,
Error Line 4, Column 72: end tag for "meta" omitted, but OMITTAG NO was specified
✉
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Also doctype declaration was omitted in the result html.
I use such structure:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type" content="text/html; charset=UTF-8" />
...
</head><body>
...
</body></html>
Q: - Are there ways for keeping end tag in self-closing tags and doctype in the result html after premailer handling?
The text was updated successfully, but these errors were encountered:
I used
premailer==3.6.1
on the project. And thehtml
which is passed totransform
method has self-enclosing tags butpremailer
turns them in tags omitted end tag.I would not notice that but I used https://validator.w3.org/ for checking result html
For example,
I use such structure:
Q: - Are there ways for keeping end tag in self-closing tags and doctype in the result html after premailer handling?
The text was updated successfully, but these errors were encountered: