Add parsing empty attribs to htmlparser (#9559)
This commit is contained in:
parent
69c0a9c6fb
commit
9899c4525c
3 changed files with 23 additions and 3 deletions
|
|
@ -2014,7 +2014,8 @@ proc parseHtml*(s: Stream, filename: string,
|
|||
## Parses the XML from stream `s` and returns a ``XmlNode``. Every
|
||||
## occurred parsing error is added to the `errors` sequence.
|
||||
var x: XmlParser
|
||||
open(x, s, filename, {reportComments, reportWhitespace, allowUnquotedAttribs})
|
||||
open(x, s, filename, {reportComments, reportWhitespace, allowUnquotedAttribs,
|
||||
allowEmptyAttribs})
|
||||
next(x)
|
||||
# skip the DOCTYPE:
|
||||
if x.kind == xmlSpecial: next(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue