empty tags using semicolons should create closing tags for non-void elements #432
Labels
context aware escaping
This feature depends on Maud treating certain elements and attributes in a special way
Take this example code:
I'd expect the
div
s closed by semicolons to become empty divs:The actual output is (with whitespace added for readability):
This matches the behaviour documented in Elements and attributes, only creating an opening tag (because that works for
<br>
tags), but is a needless pitfall.My suggestion would be to either insert a closing tag for tags that need one (like
<div>
) or to have this throw an error within the macro - since you can't manually close a div tag opened usingdiv;
, this always leads to invalid/broken HTML.The text was updated successfully, but these errors were encountered: