Skip to content

Commit

Permalink
quote attribute required when no space next to self closing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Sep 23, 2017
1 parent 8898cbd commit ae802a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ or with Bower
let min = 0, max = 99, disabled = true;

// returns an <input> tag with all attributes set
let el = html`<input type="number" min="${min}" max="${max}" name="number" id="number" class="number-input" disabled?=${disabled}/>`;
let el = html`<input type="number" min="${min}" max="${max}" name="number" id="number" class="number-input" disabled?="${disabled}"/>`;
document.body.appendChild(el);

// returns a DocumentFragment with two <tr> elements as children
Expand Down Expand Up @@ -143,7 +143,7 @@ We propose that a global tagged template string function called `html` provide t
let min = 0, max = 99, disabled = true, text = 'Hello';

// single element with attributes
html`<input type="number" min="${min}" max="${max}" name="number" id="number" class="number-input" disabled?=${disabled}/>`;
html`<input type="number" min="${min}" max="${max}" name="number" id="number" class="number-input" disabled?="${disabled}"/>`;

// single element with child elements
html`<div class="container">
Expand Down

0 comments on commit ae802a1

Please sign in to comment.