diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-03-25 14:29:50 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-03-25 14:29:50 -0700 |
commit | ed64489f0f5c9ddb869336cd8526f38d3912cc6a (patch) | |
tree | 298324676b069de7174571b0e615873d873ea8d8 /src/scanners.re | |
parent | 4226e42ff8dfa5a5375c1ee958b9d5eb2fe5b188 (diff) |
Fix inline raw HTML parsing.
This fixes a recently added failing spec test case.
Previously spaces were being allowed in unquoted attribute
values; no we forbid them.
Diffstat (limited to 'src/scanners.re')
-rw-r--r-- | src/scanners.re | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanners.re b/src/scanners.re index b20a954..c3c6821 100644 --- a/src/scanners.re +++ b/src/scanners.re @@ -41,7 +41,7 @@ bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c, attributename = [a-zA-Z_:][a-zA-Z0-9:._-]*; - unquotedvalue = [^"'=<>`\x00]+; + unquotedvalue = [^ \t\r\n\v\f"'=<>`\x00]+; singlequotedvalue = ['][^'\x00]*[']; doublequotedvalue = ["][^"\x00]*["]; |