tildeio / htmlbars

A variant of Handlebars that emits DOM and allows you to write helpers that manipulate live DOM nodes
MIT License
1.61k stars 193 forks source link

[BUGFIX beta] Allow unquoted attributes before the end of a self-closing tag #443

Closed Serabe closed 8 years ago

Serabe commented 8 years ago

As specified in emberjs/ember.js#12769,

<input type="text" value={{favoriteBand}} onblur={{action "bandDidChange"}}/>

is valid HTML but HTMLbars was raising the following exception:

An unquoted attribute value must be a string or a mustache, preceeded by
whitespace or a '=' character, and followed by whitespace or a '>'
character (on line X)

This commit addresses the problem and rephrases the assertion message.