htmlparser: support parsing of class=foobar without quotes
This commit is contained in:
parent
708b481c42
commit
5471b1eaca
1 changed files with 4 additions and 0 deletions
|
|
@ -572,6 +572,10 @@ proc parseAttribute(my: var XmlParser) =
|
|||
inc(pos)
|
||||
else:
|
||||
markError(my, errQuoteExpected)
|
||||
# error corrections: guess what was meant
|
||||
while buf[pos] != '>' and buf[pos] > ' ':
|
||||
add(my.b, buf[pos])
|
||||
inc pos
|
||||
my.bufpos = pos
|
||||
parseWhitespace(my, skip=true)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue