diff --git a/src/validate/html/validateElement.ts b/src/validate/html/validateElement.ts index 00c195a85cc1..ebdbc6ab844c 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 000000000000..268e202c2e0e --- /dev/null +++ b/test/validator/samples/select-multiple/input.html @@ -0,0 +1,3 @@ + \ No newline at end of file