-
Notifications
You must be signed in to change notification settings - Fork 188
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
Incorrect closing of anchor tags when wrapped around a table tag #192
Comments
Any reason why you would want to wrap a block element in a inline element. Pretty sure it's invalid HTML so if that's how lxml is very unlikely that premailer will try to work around this. |
HTML5 allows "block-level links" now, but I've heard it causes headaches for various screenreaders and spiders. And, apparently, LXML's HTML parser |
Any plans to release HTML5 parser for premailer? |
@shyamchandranmec What "HTML5 parser"? |
@peterbe In HTML5 it's valid to wrap block level element inside an inline element. |
wow! I did not know that. Either way, |
Wrapping a table tag with an a tag is an HTML5 feature which is not supported.
So :
Gets converted to:
Notice that Premailer closes the anchor tag before the table tag.
The text was updated successfully, but these errors were encountered: