Skip to content

Commit

Permalink
use setAttribute() for list attributes – fixes #178
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 11, 2016
1 parent 161473a commit be6b950
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/generate/visitors/attributes/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const lookup = {
label: { appliesTo: [ 'track' ] },
lang: {},
language: { appliesTo: [ 'script' ] },
list: { appliesTo: [ 'input' ] },
loop: { appliesTo: [ 'audio', 'bgsound', 'marquee', 'video' ] },
low: { appliesTo: [ 'meter' ] },
manifest: { appliesTo: [ 'html' ] },
Expand Down
8 changes: 8 additions & 0 deletions test/generator/input-list/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
html: `
<input list='suggestions'>
<datalist id='suggestions'>
<option value='foo'/><option value='bar'/><option value='baz'/>
</datalist>
`
};
4 changes: 4 additions & 0 deletions test/generator/input-list/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<input list='suggestions'>
<datalist id='suggestions'>
<option value='foo'/><option value='bar'/><option value='baz'/>
</datalist>

0 comments on commit be6b950

Please sign in to comment.