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
Boolean attributes can be expressed in some other ways, to work around this, the following work:
<olreversed=""><olreversed="reversed">
and these don't:
<olreversed><olreversed=reversed>
The former are valid XML the latter not, which may explain things (see: #221)
This is also the case in <mj-raw> tags, which is where I am actually trying to use a tag with a boolean attribute. I can obviously work around it, but this behaviour is inconsistent with the mjml.io implementation.
The text was updated successfully, but these errors were encountered:
Thanks for your feedback!
Right now, this issue seems to be related to the xmlparser used under the hood. I'm considering forking it to adapt it to html.
But for now, I'll keep this bug open but I don't consider it a priority for now.
Thanks for having a look! I agree that this one is fairly low priority and easily worked around. It also generates an error, so easy to detect as well. A future fix would still be great of course!
The following example, using a boolean attribute on the
<ol>
tag (see: docs at MDN and WHATWG ), does not work:Boolean attributes can be expressed in some other ways, to work around this, the following work:
and these don't:
The former are valid XML the latter not, which may explain things (see: #221)
This is also the case in
<mj-raw>
tags, which is where I am actually trying to use a tag with a boolean attribute. I can obviously work around it, but this behaviour is inconsistent with the mjml.io implementation.The text was updated successfully, but these errors were encountered: