I've noticed that the inclusion of script tags along with closing body or html tags causes the resulting HTML document to be malformed when parsed. Without script tags or when body and html closing tags are omitted, parsing occurs as expected. A slight modification of the HTML chunks in chunks_high_level.c illustrates the issue:
I've noticed that the inclusion of
script
tags along with closingbody
orhtml
tags causes the resulting HTML document to be malformed when parsed. Withoutscript
tags or whenbody
andhtml
closing tags are omitted, parsing occurs as expected. A slight modification of the HTML chunks in chunks_high_level.c illustrates the issue:This outputs the following:
You'll notice the extraneous
</script></head><body></body></html>
string at the end, as though the initialscript
tag was never closed.It's also quite possible that I'm misunderstanding how
myhtml_parse_chunk
is supposed to be used - if so, clarification would be greatly appreciated.Thanks in advance for your time and attention!