mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-27 12:44:22 +00:00
Allow omitting / at the end of a void element
This commit is contained in:
parent
b58383affe
commit
3ec1a7c097
@ -19,8 +19,11 @@
|
|||||||
</ol>
|
</ol>
|
||||||
<h1>Acknowledgements</h1>
|
<h1>Acknowledgements</h1>
|
||||||
<p>
|
<p>
|
||||||
Surely, we could not have done this huge amount of work all by ourselves.<br />
|
Surely,<br>
|
||||||
Therefore, we cannot thank enough the following persons for their kind contributions:
|
we could not have done this huge amount of work all by ourselves.<br/>
|
||||||
|
Therefore,<br >
|
||||||
|
we cannot thank enough the following persons<br />
|
||||||
|
for their kind contributions:
|
||||||
<!--
|
<!--
|
||||||
Of course, the text in this paragraph only serve presentation purposes, i.e. it's not actually part of the machine-consumable structured data that this API is serving.
|
Of course, the text in this paragraph only serve presentation purposes, i.e. it's not actually part of the machine-consumable structured data that this API is serving.
|
||||||
-->
|
-->
|
||||||
|
@ -27,7 +27,7 @@ local function parse(text)
|
|||||||
"(=?)" .. -- eq = the optional; "=", else ""
|
"(=?)" .. -- eq = the optional; "=", else ""
|
||||||
"(['\"]?)", -- quote = an optional "'" or '"' following the "=", or ""
|
"(['\"]?)", -- quote = an optional "'" or '"' following the "=", or ""
|
||||||
apos)
|
apos)
|
||||||
if not k or k == "/>" then break end
|
if not k or k == "/>" or k == ">" then break end
|
||||||
if eq == "" then
|
if eq == "" then
|
||||||
v = ""
|
v = ""
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user