From 46b5957f5e42dbcffe4d9fe66a0058eb750628e2 Mon Sep 17 00:00:00 2001 From: Dylan Piercey Date: Thu, 7 Oct 2021 09:59:43 -0700 Subject: [PATCH] feat: unencosed content no longer requires commas w/ multiple attrs (#87) (cherry picked from commit 7ca201763d29f805ab70633bd00c9fdd1719eb7a) --- src/states/OPEN_TAG.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/states/OPEN_TAG.ts b/src/states/OPEN_TAG.ts index 60f3842f..03983ceb 100644 --- a/src/states/OPEN_TAG.ts +++ b/src/states/OPEN_TAG.ts @@ -54,21 +54,6 @@ export const OPEN_TAG = Parser.createState({ } } } - - if ( - tag.hasUnenclosedWhitespace && - attributes.length > 1 - ) { - for (let i = 0; i < attributes.length - 1; i++) { - if (!attributes[i].endedWithComma) { - this.notifyError( - attributes[i].pos, - "COMMAS_REQUIRED", - "commas are required to separate all attributes when using complex attribute values with un-enclosed whitespace" - ); - } - } - } } tag.expectedCloseTagName = this.expectedCloseTagName =