swc/crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-conservative/input.html

141 lines
2.2 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<div> test </div>
<div>
<p>blah</p>
</div>
<div><p>blah</p></div>
<div>foo <a>baz</a> bar</div>
<div>foo<a>baz</a>bar</div>
<div>foo <a>baz</a>bar</div>
<div>foo<a>baz</a> bar</div>
<div>foo <a> baz </a> bar</div>
<div>foo<a> baz </a>bar</div>
<div>foo <a> baz </a> bar</div>
<div>foo<a> baz </a> bar</div>
<div>Foo Bar</div>
<div> Foo Bar </div>
<p>
The quick brown fox
jumps over the lazy
dog.
</p>
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
<p>
Hey, I <em>just</em> found
out about this <strong>cool</strong> website!
<sup>[1]</sup>
</p>
<pre>
Text
<code>
Text
</code>
<unknown-unknown>
Text
</unknown-unknown>
</pre>
<div>foo
bar</div>
<textarea>
Foo
</textarea>
<div> <div>Text</div> </div>
<unknown> <div>Text</div> </unknown>
<div> </div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
viewBox="0 0 100 100" preserveAspectRatio="xMidYMid slice"
style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:-1;">
<linearGradient id="gradient">
<stop class="begin" offset="0%"/>
<stop class="end" offset="100%"/>
</linearGradient>
<rect x="0" y="0" width="100" height="100" style="fill:url(#gradient)" />
<circle cx="50" cy="50" r="30" style="fill:url(#gradient)" />
</svg>
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<!-- A link around a shape -->
<a href="/docs/Web/SVG/Element/circle">
<circle cx="50" cy="40" r="35"/>
</a>
<!-- A link around a text -->
<a href="/docs/Web/SVG/Element/text">
<text x="50" y="90" text-anchor="middle">
&lt;circle&gt;
</text>
</a>
</svg>
<script>
</script>
<script>
console.log("test");
</script>
<xmp>
test
</xmp>
<div> foo <a> baz </a> bar foo <a> baz </a> bar foo <a> baz </a> bar </div>
<div>
foo <a> baz </a> bar foo <a> baz </a> bar foo <a> baz </a> bar
</div>
<div>
foo <img src="https://prettier.io/icon.png" />
</div>
</body>
</html>