diff options
author | Urabe, Shyouhei <shyouhei@ruby-lang.org> | 2017-11-06 02:41:28 +0900 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-11-05 12:41:28 -0500 |
commit | 5a16a9139e72887e844cc53ab8c8bd73373328de (patch) | |
tree | b5a90ded58ebee7f09b61acf84d2d692663a78bb | |
parent | f2be987504692627dd101b51c4ea725d4a00cfde (diff) |
disallow newlines inside of unquoted attrubtes (#507)
as per HTML spec. cf:
https://html.spec.whatwg.org/multipage/syntax.html#unquoted
-rw-r--r-- | spec.txt | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8624,7 +8624,7 @@ a [single-quoted attribute value], or a [double-quoted attribute value]. An [unquoted attribute value](@) is a nonempty string of characters not -including spaces, `"`, `'`, `=`, `<`, `>`, or `` ` ``. +including [whitespace], `"`, `'`, `=`, `<`, `>`, or `` ` ``. A [single-quoted attribute value](@) consists of `'`, zero or more @@ -8745,9 +8745,13 @@ Illegal [whitespace]: ```````````````````````````````` example < a>< foo><bar/ > +<foo bar=baz +bim!bop /> . <p>< a>< -foo><bar/ ></p> +foo><bar/ > +<foo bar=baz +bim!bop /></p> ```````````````````````````````` |