mirror of
https://github.com/TangentFoxy/lua-htmlparser.git
synced 2025-07-28 11:02:18 +00:00
Allow omitting / at the end of a void element
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user