htmlparser: support parsing of class=foobar without quotes

This commit is contained in:
Andreas Rumpf
2016-11-05 15:27:37 +01:00
parent 708b481c42
commit 5471b1eaca

View File

@@ -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)