* feat: html support * fix: support empty lines between children * refactor: isScriptTagNode util * refactor: rename `glimmer` and `handlebars` tests * fix don't add newline after `directive` node * fix: support `pre` tag * fix: don't trim comments content * fix: `script` and `style` tags output * feat: indent `head` and `body` inside `html` * fix: better handle quotes around attribute value * feat: better handle embed * tests: svg into html * fix: better handle boolean and empty attributes * chore(deps): update `parse5` to latest version * fix: better handle empty attribute * tests: fix * fix: extra newline in multiline node * fix: print `pre` and `textarea` in right way * tests: xhtml doctype * fix: use `>` instead `/>` * tests: case * refactor: remove `toLowerCase()` * feat: support `prettier-ignore` * tests: empty `script` and `style` tags * fix: clean * tests: refactor and more
18 lines
1.2 KiB
HTML
18 lines
1.2 KiB
HTML
<button type="submit">This is valid.</button>
|
|
<button type="submit" disabled>This is valid.</button>
|
|
<button type="submit" disabled="">This is valid.</button>
|
|
<button type="submit" disabled="disabled">This is valid.</button>
|
|
<button type="submit" disabled=true>This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled='true'>This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled="true">This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled=false>This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled="false">This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled='false'>This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled=hahah>This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled='hahah'>This is valid. This will be disabled.</button>
|
|
<button type="submit" disabled="hahah">This is valid. This will be disabled.</button>
|
|
<input type="checkbox" checked disabled name="cheese">
|
|
<input type="checkbox" checked="checked" disabled="disabled" name="cheese">
|
|
<input type='checkbox' checked="" disabled="" name=cheese >
|
|
<div lang=""></div>
|