MRML rewrites empty HTML nodes <node></node> within an <mj-raw> section into a self closing format <node />. But not all HTML elements are allowed to be self closed, e.q. the <div> element, as mentioned in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div
"Tag omission: None, both the starting and ending tag are mandatory."
This behavior leads to broken results, as shown in the following example:
MRML rewrites empty HTML nodes
<node></node>
within an<mj-raw>
section into a self closing format<node />
. But not all HTML elements are allowed to be self closed, e.q. the<div>
element, as mentioned in https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"Tag omission: None, both the starting and ending tag are mandatory."
This behavior leads to broken results, as shown in the following example:
parsed by mrml into
resulting in the following DOM rendered by chrome browser
The original MJML parser does not self close empty nodes and renders output in a proper way.