From 31797a253c1b9142fb5bd6ab82601ed815fe4607 Mon Sep 17 00:00:00 2001 From: "Urabe, Shyouhei" Date: Thu, 2 Nov 2017 14:13:29 +0900 Subject: [PATCH] disallow newlines inside of unquoted attrubtes 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 9fd58413..a3f7ebf4 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 />

````````````````````````````````