* 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
61 lines
1.5 KiB
HTML
61 lines
1.5 KiB
HTML
<input name=address maxlength=200>
|
|
<input name='address' maxlength='200'>
|
|
<input name="address" maxlength="200">
|
|
<div class="foo"></div>
|
|
<div class="foo" ></div>
|
|
<div class="foo bar"></div>
|
|
<div class="foo bar" id="header"></div>
|
|
<div class="foo bar" id="header" ></div>
|
|
<div data-prettier></div>
|
|
<div data-prettier="true"></div>
|
|
<meta property="og:description" content="The Mozilla Developer Network (MDN) provides
|
|
information about Open Web technologies including HTML, CSS, and APIs for both Web sites
|
|
and HTML5 Apps. It also documents Mozilla products, like Firefox OS.">
|
|
<div attribute>String</div>
|
|
<div attribute="">String</div>
|
|
<div attribute=''>String</div>
|
|
<div attribute >String</div>
|
|
<div attribute = "" >String</div>
|
|
<div attribute = '' >String</div>
|
|
<div attribute >String</div>
|
|
<div attribute = "" >String</div>
|
|
<div attribute = '' >String</div>
|
|
<div attribute="attribute = attribute"></div>
|
|
<div ATTRIBUTE>String</div>
|
|
<div ATTRIBUTE="">String</div>
|
|
<div ATTRIBUTE=''>String</div>
|
|
<article
|
|
id="electriccars"
|
|
data-columns="3"
|
|
data-index-number="12314"
|
|
data-parent="cars">
|
|
</article>
|
|
<article
|
|
id="electriccars"
|
|
data-columns="3"
|
|
data-index-number="12314"
|
|
data-parent="cars">...</article>
|
|
<article
|
|
id="electriccars"
|
|
data-columns="3"
|
|
data-index-number="12314"
|
|
data-parent="cars">
|
|
...
|
|
</article>
|
|
<article
|
|
id="electriccars"
|
|
data-columns="3"
|
|
data-index-number="12314"
|
|
data-parent="cars">
|
|
|
|
</article>
|
|
<article
|
|
id="electriccars"
|
|
data-columns="3"
|
|
data-index-number="12314"
|
|
data-parent="cars">
|
|
|
|
|
|
|
|
</article>
|