Skip to content

Commit

Permalink
Remove ="" from boolean attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Aug 7, 2018
1 parent 7efd0f6 commit 566dc98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions demo/index.html
Expand Up @@ -40,7 +40,7 @@ <h4>Basic inputs</h4>
<template>
<iron-input><input placeholder="type=date" type="date"></iron-input>
<iron-input><input placeholder="type=number" type="number"></iron-input>
<iron-input><input placeholder="disabled" disabled=""></iron-input>
<iron-input><input placeholder="disabled" disabled></iron-input>
</template>
</demo-snippet>

Expand Down Expand Up @@ -76,7 +76,7 @@ <h4>Auto-validation and preventing invalid characters</h4>
background-color: #FFCDD2;
}
</style>
<iron-input allowed-pattern="[0-9]" auto-validate="">
<iron-input allowed-pattern="[0-9]" auto-validate>
<input pattern="\d{3}" placeholder="exactly 3 digits are valid">
</iron-input>
</template>
Expand All @@ -92,7 +92,7 @@ <h4>Validation with a custom validator</h4>
}
</style>
<cats-only></cats-only>
<iron-input auto-validate="" validator="cats-only">
<iron-input auto-validate validator="cats-only">
<input placeholder="only 'cat' is valid">
</iron-input>
</template>
Expand Down
2 changes: 1 addition & 1 deletion test/disabled-input.js
Expand Up @@ -15,7 +15,7 @@ import {html} from '@polymer/polymer/lib/utils/html-tag.js';
Polymer({
_template: html`
<iron-input bind-value="{{myValue}}" invalid="{{myInvalid}}" id="input">
<input disabled="">
<input disabled>
</iron-input>`,

is: 'disabled-input',
Expand Down

0 comments on commit 566dc98

Please sign in to comment.