Skip to content

Commit

Permalink
fix #1331
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 12, 2018
1 parent 0ebe535 commit 032083b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/validate/html/validateElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
3 changes: 3 additions & 0 deletions test/validator/samples/select-multiple/input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<select bind:value multiple>
<option>1</option>
</select>

0 comments on commit 032083b

Please sign in to comment.