From 032083bb349a39a929167c257682beda96f257d5 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 11 Apr 2018 21:31:42 -0400 Subject: [PATCH] fix #1331 --- src/validate/html/validateElement.ts | 1 + test/validator/samples/select-multiple/input.html | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 test/validator/samples/select-multiple/input.html diff --git a/src/validate/html/validateElement.ts b/src/validate/html/validateElement.ts index 00c195a85c..ebdbc6ab84 100644 --- a/src/validate/html/validateElement.ts +++ b/src/validate/html/validateElement.ts @@ -294,5 +294,6 @@ function checkSlotAttribute(validator: Validator, node: Node, attribute: Node, s } function isDynamic(attribute: Node) { + if (attribute.value === true) return false; return attribute.value.length > 1 || attribute.value[0].type !== 'Text'; } diff --git a/test/validator/samples/select-multiple/input.html b/test/validator/samples/select-multiple/input.html new file mode 100644 index 0000000000..268e202c2e --- /dev/null +++ b/test/validator/samples/select-multiple/input.html @@ -0,0 +1,3 @@ + \ No newline at end of file