cl-html5-parser
cl-html5-parser copied to clipboard
Fix comment before main document node.
This should fix https://github.com/rotatef/cl-html5-parser/issues/26.
(html5-parser:parse-html5 "<!doctype html><!-- hello, world! --><html></html>" :dom :cxml)
=>
#<DOCUMENT #x302001F13DFD>
...
All Slots:
[ ] CHILDREN = #(#<RUNE-DOM::COMMENT #x302001F13C0D> #<ELEMENT html #x302001F13D3D>)
[ ] DOC-TYPE = #<RUNE-DOM::DOCUMENT-TYPE #x302001F13EDD>
...