SLAXML icon indicating copy to clipboard operation
SLAXML copied to clipboard

Omitting all children of an element doesn't self-close

Open Phrogz opened this issue 6 years ago • 0 comments

S = require'slaxdom'
doc = S:dom[[<r><k xmlns="die"/></r>]]
print(S:xml(doc,{omit={'die'}}))
--> <r></r>

Expected output is <r/>.

Phrogz avatar Oct 23 '18 18:10 Phrogz