choojs / nanohtml

:dragon: HTML template strings for the Browser with support for Server Side Rendering in Node.
MIT License
687 stars 57 forks source link

checkbox indeterminate property should be set directly #128

Closed gmaclennan closed 6 years ago

gmaclennan commented 6 years ago

An <input type="checkbox"> can be indeterminate which is displayed by default in browsers as a horizontal line. The indeterminate property needs to be set directly rather than with el.setAttribute() see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes

nanohtml does seem to know about the indeterminate prop, but as implemented passing <input type="checkbox" indeterminate="indeterminate"> will not work as expected.