From 5a16a9139e72887e844cc53ab8c8bd73373328de Mon Sep 17 00:00:00 2001 From: "Urabe, Shyouhei" Date: Mon, 6 Nov 2017 02:41:28 +0900 Subject: disallow newlines inside of unquoted attrubtes (#507) as per HTML spec. cf: https://html.spec.whatwg.org/multipage/syntax.html#unquoted --- spec.txt | 8 ++++++-- 1 file 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> + .

< a>< -foo><bar/ >

+foo><bar/ > +<foo bar=baz +bim!bop />

```````````````````````````````` -- cgit v1.2.3