aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrabe, Shyouhei <shyouhei@ruby-lang.org>2017-11-06 02:41:28 +0900
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-05 12:41:28 -0500
commit5a16a9139e72887e844cc53ab8c8bd73373328de (patch)
treeb5a90ded58ebee7f09b61acf84d2d692663a78bb
parentf2be987504692627dd101b51c4ea725d4a00cfde (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.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec.txt b/spec.txt
index 9fd5841..a3f7ebf 100644
--- a/spec.txt
+++ b/spec.txt
@@ -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>&lt; a&gt;&lt;
-foo&gt;&lt;bar/ &gt;</p>
+foo&gt;&lt;bar/ &gt;
+&lt;foo bar=baz
+bim!bop /&gt;</p>
````````````````````````````````