Merge branch 'patch-2' of https://github.com/rgv151/Nim into rgv151-patch-2
Conflicts: lib/pure/htmlparser.nim
This commit is contained in:
commit
89727ef207
1 changed files with 50 additions and 49 deletions
|
|
@ -423,6 +423,7 @@ proc toHtmlTag(s: string): HtmlTag =
|
|||
of "wbr": tagWbr
|
||||
else: tagUnknown
|
||||
|
||||
|
||||
proc htmlTag*(n: XmlNode): HtmlTag =
|
||||
## gets `n`'s tag as a ``HtmlTag``.
|
||||
if n.clientData == 0:
|
||||
|
|
@ -469,7 +470,7 @@ proc untilElementEnd(x: var XmlParser, result: XmlNode,
|
|||
tagOption}:
|
||||
errors.add(expected(x, result))
|
||||
break
|
||||
of tagTd, tagTh, tagTfoot, tagThead:
|
||||
of tagTd, tagTh:
|
||||
if htmlTag(x.elemName) in {tagTr, tagTd, tagTh, tagTfoot, tagThead}:
|
||||
errors.add(expected(x, result))
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue