Allow omitting / at the end of a void element

This commit is contained in:
Wouter Scherphof
2013-04-02 11:15:04 +02:00
parent b58383affe
commit 3ec1a7c097
2 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ local function parse(text)
"(=?)" .. -- eq = the optional; "=", else ""
"(['\"]?)", -- quote = an optional "'" or '"' following the "=", or ""
apos)
if not k or k == "/>" then break end
if not k or k == "/>" or k == ">" then break end
if eq == "" then
v = ""
else