Skip to content

Commit

Permalink
disallow newlines inside of unquoted attrubtes (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
shyouhei authored and jgm committed Nov 5, 2017
1 parent f2be987 commit 5a16a91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
````````````````````````````````


Expand Down

0 comments on commit 5a16a91

Please sign in to comment.