file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
crates/swc_html_minifier/tests/fixture/element/math/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><math> <mrow> <mrow> <msup> <mi>a</mi> <mn>2</mn> </msup> <mo>+</mo> <msup> <mi>b</mi> <mn>2</mn> </msup> </mrow> <mo>=</mo> <msup> <mi>c</mi> <mn>2</mn> </msup> </mrow> </math>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/meta/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=" width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 "> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content=" width=500, initial-scale=1 "> <meta name="not-viewport" content=" width=500 , initial-scale=1 "> <meta name="viewport" contentt=" width=500 , initial-scale=1 "> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="Content-Security-Policy" content=" default-src 'self'; img-src https://*; child-src 'none'; "> <meta http-equiv="Content-Security-Policy" content=" connect-src 'self'; font-src 'self'; frame-src 'self'; img-src 'self'; manifest-src 'self'; media-src 'self'; object-src 'self'; script-src https://example.com; style-src 'self'; worker-src 'self' "> <meta http-equiv="Content-Security-Policy" content=" default-src https:; report-uri /csp-violation-report-endpoint/ "> <meta http-equiv="Content-Security-Policy" content="default-src https:"> <meta http-equiv="Content-Security-Policy" content="default-src https:;"> <meta http-equiv="Content-Security-Policy" content=" default-src 'self'; img-src https://*; child-src 'none'; "> <meta http-equiv="Content-Security-Policy-Wrong" content=" default-src https: "> <meta http-equiv="Content-Security-Policy" unknown=" default-src https: "> <title>Document</title> </head> <body> <div>Test</div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/meta/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=viewport content="width=500,initial-scale=1"><meta name=not-viewport content=" width=500 , initial-scale=1 "><meta name=viewport contentt=" width=500 , initial-scale=1 "><meta http-equiv=X-UA-Compatible content="ie=edge"><meta http-equiv=Content-Security-Policy content="default-src 'self';img-src https://*;child-src 'none'"><meta http-equiv=Content-Security-Policy content="connect-src 'self';font-src 'self';frame-src 'self';img-src 'self';manifest-src 'self';media-src 'self';object-src 'self';script-src https://example.com;style-src 'self';worker-src 'self'"><meta http-equiv=Content-Security-Policy content="default-src https:;report-uri /csp-violation-report-endpoint/"><meta http-equiv=Content-Security-Policy content="default-src https:"><meta http-equiv=Content-Security-Policy content="default-src https:"><meta http-equiv=Content-Security-Policy content="default-src 'self';img-src https://*;child-src 'none'"><meta http-equiv=Content-Security-Policy-Wrong content=" default-src https: "><meta http-equiv=Content-Security-Policy unknown=" default-src https: "><title>Document</title><div>Test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/object/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <object type="application/pdf" data=" /media/examples/In-CC0.pdf " width="250" height="200"> </object> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/object/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><object type=application/pdf data=/media/examples/In-CC0.pdf width=250 height=200> </object>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/output/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <title>Document</title> </head> <body> <form oninput="result.value=parseInt(a.value)+parseInt(b.value)"> <input type="range" id="b" name="b" value="50" /> + <input type="number" id="a" name="a" value="10" /> = <output name="result" for="b a">60</output> </form> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/output/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><title>Document</title><form oninput="result.value=parseInt(a.value)+parseInt(b.value)"> <input type=range id=b name=b value=50> + <input type=number id=a name=a value=10> = <output name=result for="a b">60</output> </form>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/p/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <p>For more information, read <a href=https://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content/17863685#17863685>this Stack Overflow answer</a>.</p> <p>a<div>b</div> <p>a<ul><li>item</li></ul> <p>a</p><ol><li>item</li></ol> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/p/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><p>For more information, read <a href=https://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content/17863685#17863685>this Stack Overflow answer</a>.</p> <p>a<div>b</div> <p>a<ul><li>item</ul> <p>a<ol><li>item</ol>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/q/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <p>WWF's goal is to: <q cite=" http://www.wwf.org "> Build a future where people live in harmony with nature.</q> We hope they succeed.</p> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/q/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><p>WWF's goal is to: <q cite=http://www.wwf.org> Build a future where people live in harmony with nature.</q> We hope they succeed.
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-custom-type/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <title>Document</title> </head> <body> <script type="text/ng-template"> <!--test--> <div> <span> foobar </span> </div> </script> <script type="text/ng-template"> <!--test--> <div> <span> foobar </span> </div> </script> <script type="text/html"> <!--test--> <div> <span> foobar </span> </div> </script> <script type="text/html"> <!--test--> <div> <span> foobar </span> </div> </script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-custom-type/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><title>Document</title><body><script type=text/ng-template> <!--test--> <div> <span> foobar </span> </div> </script><script type=text/ng-template> <!--test--> <div> <span> foobar </span> </div> </script><script type=text/html> <!--test--> <div> <span> foobar </span> </div> </script><script type=text/html> <!--test--> <div> <span> foobar </span> </div> </script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group-respect-codegen-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <script>var test1 = "😋";</script> <div>test</div> <script>var test2 = "😋";</script> <script>var test3 = "😋";</script> <div>number</div> <script>var test4 = 123_456_789;</script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group-respect-codegen-1/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><script>var test1="😋"</script> <div>test</div> <script>var test2="😋",test3="😋"</script> <div>number</div> <script>var test4=0x75bcd15</script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group-respect-codegen-2/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <script>var test1 = "😋";</script> <div>test</div> <script>var test2 = "😋";</script> <script>var test3 = "😋";</script> <div>number</div> <script>var test4 = 123_456_789;</script> <div>emoji</div> <script>var test5="\uD83D\uDE0B";</script><script>var test6="\uD83D\uDE0B"</script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group-respect-codegen-2/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><script>var test1 = "😋";</script> <div>test</div> <script>var test2 = "😋"; var test3 = "😋"; </script> <div>number</div> <script>var test4 = 123_456_789;</script> <div>emoji</div> <script>var test5 = "\uD83D\uDE0B"; var test6 = "\uD83D\uDE0B"; </script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group-respect-codegen/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <script>var test1 = "😋";</script> <div>test</div> <script>var test2 = "😋";</script> <script>var test3 = "😋";</script> <div>number</div> <script>var test4 = 123_456_789;</script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group-respect-codegen/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><script>var test1="\uD83D\uDE0B"</script> <div>test</div> <script>var test2="\uD83D\uDE0B",test3="\uD83D\uDE0B"</script> <div>number</div> <script>var test4=0x75bcd15</script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div>breaker</div> <script>var a = "test";console.log(a)</script> <script>var b = "test";console.log(b)</script> <div>breaker</div> <script type="text/javascript">var a = "test";console.log(a);</script> <script type="application/javascript">var b = "test";console.log(b);</script> <div>breaker</div> <script type="application/javascript">var a = "test";console.log(a)</script> <script>var b = "test";console.log(b)</script> <div>breaker</div> <script type="application/javascript;version=1.8">var a = "test";console.log(a)</script> <script>var b = "test";console.log(b)</script> <div>breaker</div> <script>var a = "test";console.log(a)</script> <script crossorigin="use-credentials">var b = "test";console.log(b)</script> <div>breaker</div> <script type="text/javascript" crossorigin="use-credentials">var a = "test";console.log(a)</script> <script crossorigin="use-credentials">var b = "test";console.log(b)</script> <div>breaker</div> <script> (function test() { let test = "1"; console.log(test); })(); </script> <script> let test = "1"; console.log(test); </script> <div>breaker</div> <script type="module">var a = "test";console.log(a)</script> <script>var b = "test";console.log(b)</script> <div>breaker</div> <script type="module">var a = "test";console.log(a)</script> <script type="module">var b = "test";console.log(b)</script> <div>breaker</div> <script>var a = "test";console.log(a)</script> <script type="unknown">var b = "test";console.log(b)</script> <div>breaker</div> <script src="test.js"></script> <script>var b = "test";console.log(b)</script> <div>breaker</div> <script></script> <div>breaker</div> <script language="JavaScript">var a = "test";console.log(a)</script> <script type="text/javascript">var b = "test";console.log(b)</script> <div>breaker</div> <script language="JavaScript">var a = "test";console.log(a)</script> <script type="text/javascript" language="JavaScript">var b = "test";console.log(b)</script> <div>breaker</div> <script type="module">var a = "test";console.log(a)</script> <script type="module">var a = "test";console.log(a)</script> <div>breaker</div> <script type="module">var a = "test";console.log(a)</script> <script type="text/javascript">var a = "test";console.log(a)</script> <div>breaker</div> <script type="module"> // Test 1 var a = "test";console.log(a) // Test 2 </script> <script type="module"> // Test 3 var a = "test";console.log(a) // Test 4 </script> <div>breaker</div> <script type="module"> // Test 1 var a = "test";console.log(a); // Test 2 </script> <script type="module"> // Test 3 var a = "test";console.log(a); // Test 4 </script> <div>breaker</div> <script> // Test 1 let a = "test";console.log(a) const b = "test";console.log(b) // Test 2 </script> <script> // Test 3 let a = "test";console.log(a) const b = "test";console.log(b) // Test 4 </script> <div>breaker</div> <script type="module"> // Test 1 let a = "test";console.log(a) const b = "test";console.log(b) // Test 2 </script> <script type="module"> // Test 3 let a = "test";console.log(a) const b = "test";console.log(b) // Test 4 </script> <div>breaker</div> <script> // Test 1 let foo = [1,2,3] // Test 2</script> <script>// Test 3 [() => { console.log("test") }, 2, 3][0](); // Test 4 </script> <div>breaker</div> <script type="module"> let a = "test";console.log(a);console.log(a);console.log(a); </script> <script type="module"> let a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script> let a = "test";console.log(a);console.log(a);console.log(a); </script> <script> let a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script type="module"> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script type="module"> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script type="module"> var a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script type="module"> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script type="module"> var a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script type="module"> var a = "test";console.log(a);console.log(a);console.log(a); </script> <script> var a = "test";console.log(a);console.log(a);console.log(a); </script> <div>breaker</div> <script></script> <script></script> <div>breaker</div> <script type="module"></script> <script type="module"></script> <script type="module"></script> <script type="module"></script> <div>breaker</div> <script type="module"> </script> <script type="module"> </script> <div>breaker</div> <script type="text/javascript"></script> <script type="application/javascript"></script> <div>breaker</div> <script type="text/javascript"> </script> <script type="application/javascript"> </script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-group/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>breaker</div> <script>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script>var a="test";console.log(a)</script><script crossorigin=use-credentials>var b="test";console.log(b)</script> <div>breaker</div> <script crossorigin=use-credentials>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script>console.log("1");let test="1";console.log(test)</script> <div>breaker</div> <script type=module>console.log("test")</script><script>var b="test";console.log(b)</script> <div>breaker</div> <script type=module>console.log("test"),console.log("test")</script> <div>breaker</div> <script>var a="test";console.log(a)</script><script type=unknown>var b = "test";console.log(b)</script> <div>breaker</div> <script src=test.js></script><script>var b="test";console.log(b)</script> <div>breaker</div> <div>breaker</div> <script>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script>var a="test";console.log(a);var b="test";console.log(b)</script> <div>breaker</div> <script type=module>console.log("test"),console.log("test")</script> <div>breaker</div> <script type=module>console.log("test")</script><script>var a="test";console.log(a)</script> <div>breaker</div> <script type=module>console.log("test"),console.log("test")</script> <div>breaker</div> <script type=module>console.log("test"),console.log("test")</script> <div>breaker</div> <script>let a="test";console.log(a);let b="test";console.log(b);let a="test";console.log(a);let b="test";console.log(b)</script> <div>breaker</div> <script type=module>console.log("test"),console.log("test"),console.log("test"),console.log("test")</script> <div>breaker</div> <script>let foo=[1,2,3];[()=>{console.log("test")},2,3][0]()</script> <div>breaker</div> <script type=module>let a="test";console.log(a),console.log(a),console.log(a);let a1="test";console.log(a1),console.log(a1),console.log(a1)</script> <div>breaker</div> <script>let a="test";console.log(a),console.log(a),console.log(a);let a="test";console.log(a),console.log(a),console.log(a)</script> <div>breaker</div> <script>var a="test";console.log(a),console.log(a),console.log(a);var a="test";console.log(a),console.log(a),console.log(a)</script> <div>breaker</div> <script>var a="test";console.log(a),console.log(a),console.log(a);var a="test";console.log(a),console.log(a),console.log(a);var a="test";console.log(a),console.log(a),console.log(a)</script> <div>breaker</div> <script type=module>var a="test";console.log(a),console.log(a),console.log(a);var a1="test";console.log(a1),console.log(a1),console.log(a1);var a2="test";console.log(a2),console.log(a2),console.log(a2)</script> <div>breaker</div> <script type=module>var a="test";console.log(a),console.log(a),console.log(a)</script><script>var a="test";console.log(a),console.log(a),console.log(a)</script><script type=module>var a="test";console.log(a),console.log(a),console.log(a)</script> <div>breaker</div> <script>var a="test";console.log(a),console.log(a),console.log(a)</script><script type=module>var a="test";console.log(a),console.log(a),console.log(a)</script><script>var a="test";console.log(a),console.log(a),console.log(a)</script> <div>breaker</div> <div>breaker</div> <div>breaker</div> <div>breaker</div> <div>breaker</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-json-pretty/input.html
HTML
<!doctype html> <html> <head> <title>Party Coffee Cake</title> <script id="data" type="application/json"> { "foo" : "bar" } </script> </head> <body> <div>test</div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-json-pretty/output.min.html
HTML
<!doctype html><title>Party Coffee Cake</title><script id=data type=application/json>{ "foo": "bar" }</script><div>test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-options-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <script type="module"> const my = "bar"; function foo() { return my + "test"; } </script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-options-1/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><script type=module>const my="bar";function foo(){return"bartest"}</script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-options-2/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div>Script:</div> <script> /* Should mangle top level stuff */ var topLevel = function test() { let foo = "bar"; if (foo) { foo += "baz"; } console.log(foo); }; </script> <div>Module:</div> <script type="module"> /* Should mangle top level stuff */ var topLevel = function test() { let foo = "bar"; if (foo) { foo += "baz"; } console.log(foo); }; </script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-options-2/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>Script:</div> <script>/* Should mangle top level stuff */var o=function(){let o="bar";o&&(o+="baz"),console.log(o)}</script> <div>Module:</div> <script type=module>/* Should mangle top level stuff */var o=function(){let o="bar";o&&(o+="baz"),console.log(o)}</script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-options/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <script type="module"> /* Keep comment */ debugger; // Keep comment console.log("test " + "😀" + " test"); </script> <script> // Comment var a = "test"; /* Comment */ var b = "test"; var /* Comment */ c /* Comment */ = /* Comment */ "test" /* Comment */; </script> <script> var a = "test" // test ; </script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script-options/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><script type=module>/* Keep comment */debugger;// Keep comment console.log("test \u{1F600} test")</script><script>// Comment var a="test",b="test",/* Comment */c/* Comment */=/* Comment */"test"/* Comment */,a="test"// test </script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script/input.html
HTML
<!doctype html> <html> <head> <title>Party Coffee Cake</title> <!--[if lte IE 8]><script> alert("ie8!" + "test") </script><![endif]--> <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Recipe", "name": "Party Coffee Cake", "author": { "@type": "Person", "name": "Mary Stone" }, "datePublished": "2018-03-10", "description": "This coffee cake is awesome and perfect for parties.", "prepTime": "PT20M" } </script> <script type="application/ld+json" crossorigin="anonymous"> { "@context": "https://schema.org/", "@type": "Recipe", "name": "Party Coffee Cake", "author": { "@type": "Person", "name": "Mary Stone" }, "datePublished": "2018-03-10", "description": "This coffee cake is awesome and perfect for parties.", "prepTime": "PT20M" } </script> <script type="application/ld+json" crossorigin="anonymous"> { broken </script> <script type="unknown"> { "@context": "https://schema.org/", "@type": "Recipe", "name": "Party Coffee Cake", "author": { "@type": "Person", "name": "Mary Stone" }, "datePublished": "2018-03-10", "description": "This coffee cake is awesome and perfect for parties.", "prepTime": "PT20M" } </script> <script type="speculationrules"> { "prerender": [ { "source": "list", "urls": ["/page/2"], "score": 0.5 }, { "source": "document", "if_href_matches": ["https://*.wikipedia.org/**"], "if_not_selector_matches": [".restricted-section *"], "score": 0.1 } ] } </script> <script type="importmap"> { "imports": { "moment": "/node_modules/moment/src/moment.js", "lodash": "/node_modules/lodash-es/lodash.js" } } </script> <script type="application/json" src="data.json"></script> <script type="application/json" src="data.json"> </script> <script id="data" type="application/json"> { "foo" : "bar" } </script> <script> broken broken </script> <script type="application/ecmascript"> var a = 1 + 2; </script> <script type="application/ecmascript"> var a = 3 + 6; </script> <script type="module"> import foo from "foo.js"; const test = 140 * 420; const test1 = "test" + "test"; </script> <script> let d = new Date(); alert("Today's date is " + d); </script> <script src="javascript.js"> </script> <script src="javascript.js"> var q = "WRONG" ; </script> <script> <!-- test --> const foo = "test" + "test"; </script> <script>alert('<!--')</script> <script>alert('<!-- foo -->')</script> <script>alert('-->')</script> <script><!-- alert(1) --></script> <script type="text/javascript"> // <![CDATA[ alert("test" + "test"); // ]]> </script> <script>function test(){ var foo = 1; var bar = 2; alert(foo + " " + bar); }</script> <script>"test" + "test"</script> </head> <body> <h2>Party coffee cake recipe</h2> <p> <i>by Mary Stone, 2018-03-10</i> </p> <p> This coffee cake is awesome and perfect for parties. </p> <p> Preparation time: 20 minutes </p> <svg> <script> alert("test") </script> <script type="application/javascript;version=1.8">alert(1)</script> </svg> <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <script> // <![CDATA[ window.addEventListener('DOMContentLoaded', () => { function getColor () { const R = Math.round(Math.random() * 255).toString(16).padStart(2,'0') const G = Math.round(Math.random() * 255).toString(16).padStart(2,'0') const B = Math.round(Math.random() * 255).toString(16).padStart(2,'0') return `#${R}${G}${B}` } document.querySelector('circle').addEventListener('click', (e) => { e.target.style.fill = getColor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> <math> <script> // This is not script alert('test') </script> </math> <script blocking="render a">console.log("block");</script> <script>(function(test){ var test = "test" + Math.random() + test; var foo = 1; var bar = 2 + Math.random(); alert(foo + " " + bar); console.log(Math.random()) })("test")</script> <script>window.jQuery || document.write('<script src="jquery.js"><\/script>')</script> <div>test</div> <script></script> <div>topLevel - script</div> <script> /* Should keep top level stuff */ var topLevel = function test() { let foo = "bar"; if (foo) { foo += "baz"; } console.log(foo); }; </script> <div>topLevel - module</div> <script type="module"> /* Should keep top level stuff */ var topLevel = function test() { let foo = "bar"; if (foo) { foo += "baz"; } console.log(foo); }; </script> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/script/output.min.html
HTML
<!doctype html><title>Party Coffee Cake</title><!--[if lte IE 8]><script>alert("ie8!test")</script><![endif]--><script type=application/ld+json>{"@context":"https://schema.org/","@type":"Recipe","author":{"@type":"Person","name":"Mary Stone"},"datePublished":"2018-03-10","description":"This coffee cake is awesome and perfect for parties.","name":"Party Coffee Cake","prepTime":"PT20M"}</script><script type=application/ld+json crossorigin>{"@context":"https://schema.org/","@type":"Recipe","author":{"@type":"Person","name":"Mary Stone"},"datePublished":"2018-03-10","description":"This coffee cake is awesome and perfect for parties.","name":"Party Coffee Cake","prepTime":"PT20M"}</script><script type=application/ld+json crossorigin> { broken </script><script type=unknown> { "@context": "https://schema.org/", "@type": "Recipe", "name": "Party Coffee Cake", "author": { "@type": "Person", "name": "Mary Stone" }, "datePublished": "2018-03-10", "description": "This coffee cake is awesome and perfect for parties.", "prepTime": "PT20M" } </script><script type=speculationrules>{"prerender":[{"score":0.5,"source":"list","urls":["/page/2"]},{"if_href_matches":["https://*.wikipedia.org/**"],"if_not_selector_matches":[".restricted-section *"],"score":0.1,"source":"document"}]}</script><script type=importmap>{"imports":{"lodash":"/node_modules/lodash-es/lodash.js","moment":"/node_modules/moment/src/moment.js"}}</script><script type=application/json src=data.json></script><script type=application/json src=data.json> </script><script id=data type=application/json>{"foo":"bar"}</script><script> broken broken </script><script>var a=3,a=9</script><script type=module>import"foo.js"</script><script>let d=new Date;alert("Today's date is "+d)</script><script src=javascript.js> </script><script src=javascript.js> var q = "WRONG" ; </script><script>let foo="testtest";function test(){alert("1 2")}alert("<!--"),alert("<!-- foo -->"),alert("-->"),alert("testtest")</script><h2>Party coffee cake recipe</h2> <p> <i>by Mary Stone, 2018-03-10</i> </p> <p> This coffee cake is awesome and perfect for parties. </p> <p> Preparation time: 20 minutes </p> <svg> <script>alert("test")</script> <script>alert(1)</script> </svg> <svg viewBox="0 0 10 10"> <script>window.addEventListener("DOMContentLoaded",()=>{document.querySelector("circle").addEventListener("click",t=>{t.target.style.fill=function(){let t=Math.round(255*Math.random()).toString(16).padStart(2,"0"),n=Math.round(255*Math.random()).toString(16).padStart(2,"0"),r=Math.round(255*Math.random()).toString(16).padStart(2,"0");return`#${t}${n}${r}`}()})})</script> <circle cx=5 cy=5 r=4 /> </svg> <math> <script> // This is not script alert('test') </script> </math> <script blocking="a render">console.log("block")</script><script>!function(r){var r=Math.random();alert("1 "+(2+Math.random())),console.log(Math.random())}(0),window.jQuery||document.write('<script src="jquery.js"><\/script>')</script> <div>test</div> <div>topLevel - script</div> <script>var topLevel=function(){let o="bar";o&&(o+="baz"),console.log(o)}</script> <div>topLevel - module</div> <script type=module></script>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-disable-compress-css/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <style type="text/css"> a { color: red; } </style> <style type="TEXT/CSS"> a { color: red; } </style> <style> a { color: red; } </style> <style type="not/css"> K e E p </style> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-disable-compress-css/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><style> a { color: red; } a { color: red; } a { color: red; } </style><style type=not/css> K e E p </style>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-group-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <style> a { color:red } </style><style> b { color:blue } </style> <!-- test --> <style> p { color: white; background-color: blue; padding: 5px; border: 1px solid black; } </style> <style> p { color: blue; background-color: yellow; } </style> <style media="all and (max-width: 500px)"> p { color: blue; background-color: yellow; } </style> <style type="text/css"> .first { color: red; } </style> <style type="text/css"> .second { color: red; } </style> <style media="all"> p { color: blue; } </style> <style media="all"> p { color: red; } </style> </head> <body> <div>test</div> <style>a { color: red }</style> <style></style> <div>test</div> <style></style> <style>a { color: red }</style> <div>test</div> <style type="text/css"></style><style>a { color: red }</style> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-group-1/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><style>a{color:red}b{color:blue}p{color:white;background-color:blue;padding:5px;border:1px solid black;color:blue;background-color:yellow}</style><style media="all and (max-width:500px)">p{color:blue;background-color:yellow}</style><style>.first,.second{color:red}</style><style media=all>p{color:blue;color:red}</style><div>test</div> <style>a{color:red}</style> <div>test</div> <style>a{color:red}</style> <div>test</div> <style>a{color:red}</style>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-group-2/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <style> a { color:red } </style><style> b { color:blue } </style> <!-- test --> <style> p { color: white; background-color: blue; padding: 5px; border: 1px solid black; } </style> <style> p { color: blue; background-color: yellow; } </style> <style media="all and (max-width: 500px)"> p { color: blue; background-color: yellow; } </style> <style type="text/css"> .first { color: red; } </style> <style type="text/css"> .second { color: red; } </style> <style media="all"> p { color: blue; } </style> <style media="all"> p { color: red; } </style> </head> <body> <div>test</div> <style>a { color: red }</style> <style></style> <div>test</div> <style></style> <style>a { color: red }</style> <div>test</div> <style type="text/css"></style><style>a { color: red }</style> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-group-2/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><style>a{color:red}</style><style>b{color:blue}</style><style>p{color:white;background-color:blue;padding:5px;border:1px solid black}</style><style>p{color:blue;background-color:yellow}</style><style media="all and (max-width:500px)">p{color:blue;background-color:yellow}</style><style>.first{color:red}</style><style>.second{color:red}</style><style media=all>p{color:blue}</style><style media=all>p{color:red}</style><div>test</div> <style>a{color:red}</style><style></style> <div>test</div> <style></style><style>a{color:red}</style> <div>test</div> <style></style><style>a{color:red}</style>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-group/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <style> a { color:red } </style><style> b { color:blue } </style> <!-- test --> <style> p { color: white; background-color: blue; padding: 5px; border: 1px solid black; } </style> <style> p { color: blue; background-color: yellow; } </style> <style media="all and (max-width: 500px)"> p { color: blue; background-color: yellow; } </style> <style type="text/css"> .first { color: red; } </style> <style type="text/css"> .second { color: red; } </style> <style media="all"> p { color: blue; } </style> <style media="all"> p { color: red; } </style> </head> <body> <h1>Text</h1> <div>Text</div> <style> a { color:red } </style> <style> b { color:blue } </style> <div>test</div> <style>a { color: red }</style> <style></style> <div>test</div> <style></style> <style>a { color: red }</style> <div>test</div> <style>a { color: red }</style> <style>html { color: red }</style> <style>body { color: red }</style> <div>test</div> <style type="text/css"></style><style>a { color: red }</style> <div>test</div> <style type="text/css"></style><style type=" text/css ">a { color: red }</style> <div>test</div> <style media="screen" title="test">a { display: block }</style><style title="test" media="screen">a { color: red }</style> <div>test</div> <style type="text/css" media="screen"></style><style media="screen">a { color: red }</style> <div>test</div> <style title="test" media="screen"></style><style media="screen">a { color: red }</style> <div>test</div> <style type="unknown">a { color: red }</style><style type="unknown"></style> <div>test</div> <style type="text/css">a { color: red; }</style><style type=" text/css ">div { color: blue; }</style> <div>EMPTY breaker</div> <style></style> <style></style> <div>breaker</div> <style></style> <style></style> <style></style> <div>breaker style tags</div> <style></style> <style></style> <style></style> <style></style> <style></style> <div>breaker style tags</div> <style></style><style></style><style></style><style></style><style></style> <div>breaker</div> <style></style> <script></script> <div>breaker</div> <script></script> <style></style> <div>breaker</div> <style></style> <span>test</span> <div>breaker</div> <span>test</span> <style></style> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-group/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><style>a{color:red}b{color:blue}p{color:white;background-color:blue;padding:5px;border:1px solid black;color:blue;background-color:yellow}</style><style media="all and (max-width:500px)">p{color:blue;background-color:yellow}</style><style>.first,.second{color:red}</style><style media=all>p{color:blue;color:red}</style><h1>Text</h1> <div>Text</div> <style>a{color:red}b{color:blue}</style> <div>test</div> <style>a{color:red}</style> <div>test</div><style>a{color:red}</style> <div>test</div> <style>a,html,body{color:red}</style> <div>test</div> <style>a{color:red}</style> <div>test</div> <style>a{color:red}</style> <div>test</div> <style media=screen title=test>a{display:block;color:red}</style> <div>test</div> <style media=screen>a{color:red}</style> <div>test</div> <style title=test media=screen></style><style media=screen>a{color:red}</style> <div>test</div> <style type=unknown>a { color: red }</style><style type=unknown></style> <div>test</div> <style>a{color:red}div{color:blue}</style> <div>EMPTY breaker</div> <div>breaker</div> <div>breaker style tags</div> <div>breaker style tags</div> <div>breaker</div> <div>breaker</div> <div>breaker</div> <span>test</span> <div>breaker</div> <span>test</span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-with-wrong-comments/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div>test</div> <style> // Comment a { color: red; } </style> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style-with-wrong-comments/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>test</div> <style>a{color:red}</style>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <style type="text/css"> a { color: red; } </style> <style type="TEXT/CSS"> a { color: red; } </style> <style> a { color: red; } </style> <style type="not/css"> K e E p </style> <svg> <style type="text/css"> a { color: red; } </style> </svg> <style><!-- p { color: red } --></style> <style> a { color: red; } @media all { p { color: red } } </style> <STYLE><!--.test { color: red }--></STYLE> <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <style> circle { fill: gold; stroke: maroon; stroke-width: 2px; } </style> <circle cx="5" cy="5" r="4" /> </svg> <math> <style> /* This is not style */ .class { color: red } </style> </math> <style blocking="render a">a { color: red }</style> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/style/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><body><style>a{color:red}</style><style type=not/css> K e E p </style> <svg> <style>a{color:red}</style> </svg> <style>p,a{color:red}@media all{p{color:red}}.test{color:red}</style> <svg viewBox="0 0 10 10"> <style>circle{fill:gold;stroke:maroon;stroke-width:2px}</style> <circle cx=5 cy=5 r=4 /> </svg> <math> <style> /* This is not style */ .class { color: red } </style> </math> <style blocking="a render">a{color:red}</style>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/svg/input.html
HTML
<!doctype html> <html> <body> <svg width="120" height="220" viewPort="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg"> <style type="text/css" > <![CDATA[ rect.rectClass { stroke: #000066; fill: #00cc00; } circle.circleClass { stroke: #006600; fill: #cc0000; } ]]> </style> <rect class="rectClass foo bar baz" x="10" y="10" width="100" height="100"/> <circle class="circleClass" cx="40" cy="50" r="26"/> </svg> <div class=" small big "></div> <svg viewBox="0 0 240 80" xmlns="http://www.w3.org/2000/svg"> <text x="20" y="35" class=" small big ">My</text> </svg> <math> <mrow> <mrow> <msup> <mi>a</mi> <mn>2</mn> </msup> <mo>+</mo> <msup> <mi class=" small big ">b</mi> <mn>2</mn> </msup> </mrow> <mo>=</mo> <msup> <mi>c</mi> <mn>2</mn> </msup> </mrow> </math> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" /> </svg> <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" version="1.1"> <defs> <style type="text/css"><![CDATA[ #MyRect { stroke: black; fill: red; } ]]></style> </defs> <rect x="10" height="180" y="10" width="180" id="MyRect"/> </svg> <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- Example of a polygon with the default fill --> <polygon id="" points="0,100 50,25 50,75 100,0" /> <!-- Example of the same polygon shape with stroke and no fill --> <polygon id="" points="100,100 150,25 150,75 200,0" fill="black" stroke="black" /> </svg> <svg viewBox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-weight="normal">Normal text</text> <text x="100" y="20" font-weight="bold">Bold text</text> </svg> <svg viewBox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-variant="normal">Normal text</text> <text x="100" y="20" font-variant="small-caps">Small-caps text</text> </svg> <svg viewBox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-style="normal">Normal font style</text> <text x="150" y="20" font-style="italic">Italic font style</text> </svg> <svg viewBox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-size="medium">smaller</text> <textPath y="20" font-size="medium">smaller</textPath> <text x="100" y="20" font-size="2em">2em</text> </svg> <svg viewBox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <!-- Simple color fill --> <circle cx="50" cy="50" r="40" fill="pink" /> <!-- Fill circle with a gradient --> <defs> <radialGradient id="myGradient"> <stop offset="0%" stop-color="pink" /> <stop offset="100%" stop-color="black" /> </radialGradient> </defs> <circle cx="150" cy="50" r="40" fill="url(#myGradient)" /> <!-- Keeping the final state of an animated circle which is a circle with a radius of 40. --> <circle cx="250" cy="50" r="20"> <animate attributeType="XML" attributeName="r" from="0" to="40" dur="5s" fill="freeze" /> </circle> </svg> <svg viewBox="0 0 400 100" xmlns="http://www.w3.org/2000/svg"> <!-- Default fill opacity: 1 --> <circle cx="50" cy="50" r="40" fill-opacity="1" /> <circle cx="50" cy="50" r="40" /> <!-- Fill opacity as a number --> <circle cx="150" cy="50" r="40" fill-opacity="0.7" /> <!-- Fill opacity as a percentage --> <circle cx="250" cy="50" r="40" fill-opacity="50%" /> <!-- Fill opacity as a CSS property --> <circle cx="350" cy="50" r="40" style="fill-opacity: .25;" /> </svg> <svg> <feMorphology radius="0"></feMorphology> </svg> <svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="composite1" x="0" y="0" width="100%" height="100%"> <feComposite in2="SourceGraphic" operator="arithmetic" k1="1" k2="0" k3="0" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <feComposite in2="SourceGraphic" operator="arithmetic" k1="10" k2="0" k3="0" k4="0.3" /> </filter> <image href="mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translateX(220px);" /> </svg> <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="0" y2="0" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg> <svg viewBox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementFilter"> <feImage xlink:href="mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <feDisplacementMap in2="abc" in="SourceGraphic" scale="30" yChannelSelector="A"/> </filter> <filter id="displacementFilter2"> <feImage xlink:href="mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <feDisplacementMap in2="abc" in="SourceGraphic" scale="30" yChannelSelector="B"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementFilter)">Some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementFilter2)">Some displaced text</text> </svg> <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" zoomAndPan="magnify"> <filter id="diffuseLighting" x="0" y="0" width="100%" height="100%"> <feDiffuseLighting in="SourceGraphic" zoomAndPan="1"> <fePointLight x="60" y="60" z="20" /> </feDiffuseLighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuseLighting);" /> </svg> <svg viewBox="-1 -1 162 92" xmlns="http://www.w3.org/2000/svg"> <defs> <path id="smiley" d="M50,10 A40,40,1,1,1,50,90 A40,40,1,1,1,50,10 M30,40 Q36,35,42,40 M58,40 Q64,35,70,40 M30,60 Q50,75,70,60 Q50,75,30,60" /> </defs> <!-- (width>height) meet --> <rect x="0" y="0" width="20" height="10"> <title>xMidYMid meet</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMidYMid meet" x="0" y="0"> <use href="#smiley" /> </svg> <rect x="25" y="0" width="20" height="10"> <title>xMinYMid meet</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMinYMid meet" x="25" y="0"> <use href="#smiley" /> </svg> <rect x="50" y="0" width="20" height="10"> <title>xMaxYMid meet</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMaxYMid meet" x="50" y="0"> <use href="#smiley" /> </svg> <!-- (width>height) slice --> <rect x="0" y="15" width="20" height="10"> <title>xMidYMin slice</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMidYMin slice" x="0" y="15"> <use href="#smiley" /> </svg> <rect x="25" y="15" width="20" height="10"> <title>xMidYMid slice</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMidYMid slice" x="25" y="15"> <use href="#smiley" /> </svg> <rect x="50" y="15" width="20" height="10"> <title>xMidYMax slice</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMidYMax slice" x="50" y="15"> <use href="#smiley" /> </svg> <!-- (width<height) meet --> <rect x="75" y="0" width="10" height="25"> <title>xMidYMin meet</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMidYMin meet" x="75" y="0"> <use href="#smiley" /> </svg> <rect x="90" y="0" width="10" height="25"> <title>xMidYMid meet</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMidYMid meet" x="90" y="0"> <use href="#smiley" /> </svg> <rect x="105" y="0" width="10" height="25"> <title>xMidYMax meet</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMidYMax meet" x="105" y="0"> <use href="#smiley" /> </svg> <!-- (width<height) slice --> <rect x="120" y="0" width="10" height="25"> <title>xMinYMid slice</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMinYMid slice" x="120" y="0"> <use href="#smiley" /> </svg> <rect x="135" y="0" width="10" height="25"> <title>xMidYMid slice</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMidYMid slice" x="135" y="0"> <use href="#smiley" /> </svg> <rect x="150" y="0" width="10" height="25"> <title>xMaxYMid slice</title> </rect> <svg viewBox="0 0 100 100" width="10" height="25" preserveAspectRatio="xMaxYMid slice" x="150" y="0"> <use href="#smiley" /> </svg> <!-- none --> <rect x="0" y="30" width="160" height="60"> <title>none</title> </rect> <svg viewBox="0 0 100 100" width="160" height="60" preserveAspectRatio="none" x="0" y="30"> <use href="#smiley" /> </svg> </svg> <svg viewBox="0 0 400 100" xmlns="http://www.w3.org/2000/svg"> <!-- Default fill opacity: 1 --> <circle cx="50" cy="50" r="40" fill-opacity="1" /> <!-- Fill opacity as a number --> <circle cx="150" cy="50" r="40" fill-opacity="0.7" /> <!-- Fill opacity as a percentage --> <circle cx="250" cy="50" r="40" fill-opacity="50%" /> <!-- Fill opacity as a CSS property --> <circle cx="350" cy="50" r="40" style="fill-opacity: .25;" /> </svg> <svg viewBox="0 0 140 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" xml:space="default">Default spacing</text> <text y="40" xml:space="preserve" alignment-baseline="auto">Preserved spacing</text> </svg> <svg viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg"> <!-- Simple rectangle --> <rect width="100" height="100" onclick="alert('test' + 'test');" /> <rect width="100" height="100" onclick="javascript:alert('test' + 'test');" /> <!-- Rounded corner rectangle --> <rect x="120" width="100" height="100" rx="15" /> </svg> <svg> <a href=" test.html " ondragexit="alert( 'test' + 'test' )" rel=" nofollow noindex ">Test</a> </svg> <svg viewBox="0 0 100 100" width="160" height="60" preserveAspectRatio=" xMidYMid meet " x="0" y="30"> <use href="#smiley" /> </svg> <svg viewBox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polygon is an closed shape --> <polygon stroke="black" fill="none" points=" 50 , 0 21 , 90 98 , 35 2, 35 79, 90" /> </svg> <svg viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributeName=cx dur=4s repeatCount=indefinite values=" 60; 110; 60; 10; 60 " keyTimes=" 0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributeName="cy" dur="4s" repeatCount="indefinite" values=" 10; 60; 110; 60; 10 " keyTimes="0; 0.25; 0.5; 0.75; 1"/> </circle> </svg> <svg viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributeName="cx" dur="4s" calcMode="spline" repeatCount="indefinite" values="60; 110; 60; 10; 60" keyTimes="0; 0.25; 0.5; 0.75; 1" keySplines="0.5 0 0.5 1; 0.5 0 0.5 1; 0.5 0 0.5 1; 0.5 0 0.5 1"/> <animate attributeName="cy" dur="4s" calcMode="spline" repeatCount="indefinite" values="10; 60; 110; 60; 10" keyTimes="0; 0.25; 0.5; 0.75; 1" keySplines=" 0.5 0 0.5 1 ; 0.5 0 0.5 1; 0.5 0 0.5 1; 0.5 0 0.5 1" /> </circle> </svg> <svg viewBox=" -5 -5 10 10 " xmlns="http://www.w3.org/2000/svg"> <!-- The point of coordinate 0,0 is now in the center of the viewport, and 100% is still resolve to a width or height of 10 user units so the rectangle looks shifted to the bottom/right corner of the viewport --> <rect x="0" y="0" width="100%" height="100%"/> <!-- With the point of coordinate 0,0 in the center of the viewport the value 50% is resolve to 5 which means the center of the circle is in the bottom/right corner of the viewport. --> <circle cx="50%" cy="50%" r="4" fill="white"/> </svg> <svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!-- Dashes and gaps of various sizes with an even number of values --> <line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray=" 4 1 2 3 " /> <rect x="11" y="1" width="8" height="8" stroke="green" clip-path=" circle() fill-box " /> </svg> <svg id="svg_css_ex1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="red" d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z " /> </svg> <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributeType="XML" attributeName="width" to="50" id="first" begin=" 0s; third.end " end=" 0s; third.end " dur="4s" /> </rect> <rect x="60" y="60" height="15" width="0"> <animate attributeType="XML" attributeName="width" to="25" id="second" begin="first.end" dur="2s" /> </rect> <rect x="85" y="85" height="15" width="0"> <animate attributeType="XML" attributeName="width" to="25" id="third" begin="second.end" dur="2s" /> </rect> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="105" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="105" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="105" stroke="grey" stroke-width=".5" /> <text x="85" y="20" text-anchor="middle">6s</text> <line x1="85" y1="25" x2="85" y2="105" stroke="grey" stroke-width=".5" /> <text x="110" y="20" text-anchor="middle">8s</text> <line x1="110" y1="25" x2="110" y2="105" stroke="grey" stroke-width=".5" /> <line x1="10" y1="30" x2="110" y2="30" stroke="grey" stroke-width=".5" /> <line x1="10" y1="105" x2="110" y2="105" stroke="grey" stroke-width=".5" /> </svg> <svg> <filter id="colorMeTheSame"> <feColorMatrix in="SourceGraphic" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /> </filter> </svg> <svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="convolveMatrix1" x="0" y="0" width="100%" height="100%"> <feConvolveMatrix kernelMatrix=" 1 1 0 0 0 0 0 0 -1"/> </filter> <filter id="convolveMatrix2" x="0" y="0" width="100%" height="100%"> <feConvolveMatrix kernelMatrix="-1 0 0 0 0 0 0 0 1"/> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolveMatrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolveMatrix2); transform:translateX(220px);"/> </svg> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!-- Apply a transform on the tile --> <pattern id="p1" width=".25" height=".25" patternTransform="rotate(20) skewX(30) scale(1 0.5)"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- Apply the transformed pattern tile --> <rect x="10" y="10" width="80" height="80" fill="url(#p1)" /> </svg> <svg xmlns="http://www.w3.org/2000/svg" xml:lang="en" viewBox="0 0 200 500"> <title>Scream—Comic Book text</title> <style> @font-face { font-family: 'SequentialistBB'; src: url('fonts/SequentialistBB.woff2') format('woff2'), url('fonts/SequentialistBB.woff') format('woff'); font-style: normal; font-weight: 400; } text { font-family: SequentialistBB, Papyrus-condensed, Impact, sans-serif-condensed, sans-serif; font-stretch: condensed; writing-mode: tb; /* SVG 1 syntax */ glyph-orientation-vertical: 0; writing-mode: vertical-rl; /* CSS3 syntax */ text-orientation: upright; font-size: 28px; } tspan { font-size: 75%; } path { fill: #fff; stroke: #000; stroke-width: 2; } </style> <path d="M175,495 L140,465 C30,500 40,400 30,200 S70,10 100,10 S170,0 170,200 S170,400 150,450 Z" /> <text x="100" y="12" rotate="0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285 300 315 330 345 360" textLength="450"> AAAaaaa<tspan>aaaa<tspan>aaaa<tspan>aahhh!</tspan >!</tspan>!</tspan>!</text> </svg> <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path id="MyPath" fill="none" stroke="silver" d=" M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50" /> <text> <textPath path="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> <svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="gradient" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </linearGradient> </defs> <filter id="componentTransfer1" x="0" y="0" width="100%" height="100%"> <feComponentTransfer> <feFuncR type="table" tableValues=" 0 1 "/> <feFuncG type="table" tableValues=" 0 1 "/> <feFuncB type="table" tableValues="0 1"/> </feComponentTransfer> </filter> <filter id="componentTransfer2" x="0" y="0" width="100%" height="100%"> <feComponentTransfer> <feFuncR type="table" tableValues="1 0"/> <feFuncG type="table" tableValues="1 0"/> <feFuncB type="table" tableValues="1 0"/> </feComponentTransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componentTransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componentTransfer2); transform: translateX(220px);" /> </svg> <svg width="450" height="1170" xmlns="http://www.w3.org/2000/svg"> <!-- Testing : http://www.w3.org/TR/SVG11/feature#SVG --> <rect class="ko" x="10" y="10" height="25" width="430" /> <rect class="ok" x="10" y="10" height="25" width="430" requiredFeatures=" http://www.w3.org/TR/SVG11/feature#SVG http://www.w3.org/TR/SVG11/feature#SVG " /> </svg> <svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <radialGradient id="gradient1" gradientUnits="userSpaceOnUse" cx="100" cy="100" r="100" fx="100" fy="100"> <stop offset="0%" stop-color="darkblue" /> <stop offset="50%" stop-color="skyblue" /> <stop offset="100%" stop-color="darkblue" /> </radialGradient> <radialGradient id="gradient2" gradientUnits="userSpaceOnUse" cx="100" cy="100" r="100" fx="100" fy="100" gradientTransform=" skewX(20) translate(-35, 0) "> <stop offset="0%" stop-color="darkblue" /> <stop offset="50%" stop-color="skyblue" /> <stop offset="100%" stop-color="darkblue" /> </radialGradient> <rect x="0" y="0" width="200" height="200" fill="url(#gradient1)" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient2)" style="transform: translateX(220px);" /> </svg> <svg viewBox="-40 0 150 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g fill="grey" transform="rotate(-10 50 100) translate(-36 45.5) skewX(40) scale(1 0.5)"> <path id="heart" d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z" /> </g> <use xlink:href="#heart" fill="none" stroke="red"/> </svg> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/svg/output.min.html
HTML
<!doctype html><svg width=120 height=220 viewport="0 0 120 120" version=1.1> <style>rect.rectClass{stroke:#006;fill:#0c0}circle.circleClass{stroke:#060;fill:#c00}</style> <rect class="bar baz foo rectClass" x=10 y=10 width=100 height=100 /> <circle class=circleClass cx=40 cy=50 r=26 /> </svg> <div class="big small"></div> <svg viewBox="0 0 240 80"> <text x=20 y=35 class="big small">My</text> </svg> <math> <mrow> <mrow> <msup> <mi>a</mi> <mn>2</mn> </msup> <mo>+</mo> <msup> <mi class="big small">b</mi> <mn>2</mn> </msup> </mrow> <mo>=</mo> <msup> <mi>c</mi> <mn>2</mn> </msup> </mrow> </math> <svg version=1.1> <circle cx=100 cy=50 r=40 stroke=black stroke-width=2 fill=red /> </svg> <svg width=200 height=200 version=1.1> <defs> <style>#MyRect{stroke:black;fill:red}</style> </defs> <rect x=10 height=180 y=10 width=180 id=MyRect /> </svg> <svg viewBox="0 0 200 100"> <polygon points="0,100 50,25 50,75 100,0"/> <polygon points="100,100 150,25 150,75 200,0" fill=black stroke=black /> </svg> <svg viewBox="0 0 200 30"> <text y=20 font-weight=normal>Normal text</text> <text x=100 y=20 font-weight=bold>Bold text</text> </svg> <svg viewBox="0 0 250 30"> <text y=20 font-variant=normal>Normal text</text> <text x=100 y=20 font-variant=small-caps>Small-caps text</text> </svg> <svg viewBox="0 0 250 30"> <text y=20 font-style=normal>Normal font style</text> <text x=150 y=20 font-style=italic>Italic font style</text> </svg> <svg viewBox="0 0 200 30"> <text y=20 font-size=medium>smaller</text> <textPath y=20 font-size=medium>smaller</textPath> <text x=100 y=20 font-size=2em>2em</text> </svg> <svg viewBox="0 0 300 100"> <circle cx=50 cy=50 r=40 fill=pink /> <defs> <radialGradient id=myGradient> <stop offset=0% stop-color=pink /> <stop offset=100% /> </radialGradient> </defs> <circle cx=150 cy=50 r=40 fill=url(#myGradient) /> <circle cx=250 cy=50 r=20> <animate attributeType=XML attributeName=r from=0 to=40 dur=5s fill=freeze /> </circle> </svg> <svg viewBox="0 0 400 100"> <circle cx=50 cy=50 r=40 fill-opacity=1 /> <circle cx=50 cy=50 r=40 /> <circle cx=150 cy=50 r=40 fill-opacity=0.7 /> <circle cx=250 cy=50 r=40 fill-opacity=50% /> <circle cx=350 cy=50 r=40 style=fill-opacity:.25 /> </svg> <svg> <feMorphology/> </svg> <svg viewBox="0 0 420 200"> <filter id=composite1 x=0 y=0 width=100% height=100%> <feComposite in2=SourceGraphic operator=arithmetic k1=1 /> </filter> <filter id=composite2 x=0 y=0 width=100% height=100%> <feComposite in2=SourceGraphic operator=arithmetic k1=10 k4=0.3 /> </filter> <image href=mdn.svg width=200 height=200 style=filter:url(#composite1) /> <image href=mdn.svg width=200 height=200 style=filter:url(#composite2);transform:translatex(220px) /> </svg> <svg viewBox="0 0 10 10"> <line x1=1 x2=9 stroke=red /> <line x1=1 x2=9 y1=5 y2=5 stroke=green /> <line x1=1 x2=9 y1=5 y2=9 stroke=blue /> </svg> <svg viewBox="0 0 440 160"> <filter id=displacementFilter> <feImage xlink:href=mdn.svg x=0 y=0 result=abc /> <feDisplacementMap in2=abc in=SourceGraphic scale=30 /> </filter> <filter id=displacementFilter2> <feImage xlink:href=mdn.svg x=0 y=0 result=abc /> <feDisplacementMap in2=abc in=SourceGraphic scale=30 yChannelSelector=B /> </filter> <text x=10 y=60 font-size=50 filter=url(#displacementFilter)>Some displaced text</text> <text x=10 y=120 font-size=50 filter=url(#displacementFilter2)>Some displaced text</text> </svg> <svg viewBox="0 0 200 200"> <filter id=diffuseLighting x=0 y=0 width=100% height=100%> <feDiffuseLighting in=SourceGraphic zoomAndPan=1> <fePointLight x=60 y=60 z=20 /> </feDiffuseLighting> </filter> <rect width=200 height=200 style=filter:url(#diffuseLighting) /> </svg> <svg viewBox="-1 -1 162 92"> <defs> <path id=smiley d="M50,10 A40,40,1,1,1,50,90 A40,40,1,1,1,50,10 M30,40 Q36,35,42,40 M58,40 Q64,35,70,40 M30,60 Q50,75,70,60 Q50,75,30,60"/> </defs> <rect width=20 height=10> <title>xMidYMid meet</title> </rect> <svg viewBox="0 0 100 100" width=20 height=10> <use href=#smiley /> </svg> <rect x=25 width=20 height=10> <title>xMinYMid meet</title> </rect> <svg viewBox="0 0 100 100" width=20 height=10 preserveAspectRatio="xMinYMid meet" x=25> <use href=#smiley /> </svg> <rect x=50 width=20 height=10> <title>xMaxYMid meet</title> </rect> <svg viewBox="0 0 100 100" width=20 height=10 preserveAspectRatio="xMaxYMid meet" x=50> <use href=#smiley /> </svg> <rect y=15 width=20 height=10> <title>xMidYMin slice</title> </rect> <svg viewBox="0 0 100 100" width=20 height=10 preserveAspectRatio="xMidYMin slice" y=15> <use href=#smiley /> </svg> <rect x=25 y=15 width=20 height=10> <title>xMidYMid slice</title> </rect> <svg viewBox="0 0 100 100" width=20 height=10 preserveAspectRatio="xMidYMid slice" x=25 y=15> <use href=#smiley /> </svg> <rect x=50 y=15 width=20 height=10> <title>xMidYMax slice</title> </rect> <svg viewBox="0 0 100 100" width=20 height=10 preserveAspectRatio="xMidYMax slice" x=50 y=15> <use href=#smiley /> </svg> <rect x=75 width=10 height=25> <title>xMidYMin meet</title> </rect> <svg viewBox="0 0 100 100" width=10 height=25 preserveAspectRatio="xMidYMin meet" x=75> <use href=#smiley /> </svg> <rect x=90 width=10 height=25> <title>xMidYMid meet</title> </rect> <svg viewBox="0 0 100 100" width=10 height=25 x=90> <use href=#smiley /> </svg> <rect x=105 width=10 height=25> <title>xMidYMax meet</title> </rect> <svg viewBox="0 0 100 100" width=10 height=25 preserveAspectRatio="xMidYMax meet" x=105> <use href=#smiley /> </svg> <rect x=120 width=10 height=25> <title>xMinYMid slice</title> </rect> <svg viewBox="0 0 100 100" width=10 height=25 preserveAspectRatio="xMinYMid slice" x=120> <use href=#smiley /> </svg> <rect x=135 width=10 height=25> <title>xMidYMid slice</title> </rect> <svg viewBox="0 0 100 100" width=10 height=25 preserveAspectRatio="xMidYMid slice" x=135> <use href=#smiley /> </svg> <rect x=150 width=10 height=25> <title>xMaxYMid slice</title> </rect> <svg viewBox="0 0 100 100" width=10 height=25 preserveAspectRatio="xMaxYMid slice" x=150> <use href=#smiley /> </svg> <rect y=30 width=160 height=60> <title>none</title> </rect> <svg viewBox="0 0 100 100" width=160 height=60 preserveAspectRatio=none y=30> <use href=#smiley /> </svg> </svg> <svg viewBox="0 0 400 100"> <circle cx=50 cy=50 r=40 fill-opacity=1 /> <circle cx=150 cy=50 r=40 fill-opacity=0.7 /> <circle cx=250 cy=50 r=40 fill-opacity=50% /> <circle cx=350 cy=50 r=40 style=fill-opacity:.25 /> </svg> <svg viewBox="0 0 140 50"> <text y=20>Default spacing</text> <text y=40 xml:space=preserve>Preserved spacing</text> </svg> <svg viewBox="0 0 220 100"> <rect width=100 height=100 onclick='alert("testtest")'/> <rect width=100 height=100 onclick='alert("testtest")'/> <rect x=120 width=100 height=100 rx=15 /> </svg> <svg> <a href=test.html ondragexit='alert("testtest")' rel="nofollow noindex">Test</a> </svg> <svg viewBox="0 0 100 100" width=160 height=60 y=30> <use href=#smiley /> </svg> <svg viewBox="-10 -10 120 120"> <polygon stroke=black fill=none points="50,0 21,90 98,35 2,35 79,90"/> </svg> <svg viewBox="0 0 120 120"> <circle cx=60 cy=10 r=10> <animate attributeName=cx dur=4s repeatCount=indefinite values=60;110;60;10;60 keyTimes=0;0.25;0.5;0.75;1 /> <animate attributeName=cy dur=4s repeatCount=indefinite values=10;60;110;60;10 keyTimes=0;0.25;0.5;0.75;1 /> </circle> </svg> <svg viewBox="0 0 120 120"> <circle cx=60 cy=10 r=10> <animate attributeName=cx dur=4s calcMode=spline repeatCount=indefinite values=60;110;60;10;60 keyTimes=0;0.25;0.5;0.75;1 keySplines="0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1"/> <animate attributeName=cy dur=4s calcMode=spline repeatCount=indefinite values=10;60;110;60;10 keyTimes=0;0.25;0.5;0.75;1 keySplines="0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1;0.5 0 0.5 1"/> </circle> </svg> <svg viewBox="-5 -5 10 10"> <rect width=100% height=100% /> <circle cx=50% cy=50% r=4 fill=white /> </svg> <svg viewBox="0 0 30 10"> <line y1=9 x2=30 y2=9 stroke=black stroke-dasharray="4 1 2 3"/> <rect x=11 y=1 width=8 height=8 stroke=green clip-path="circle() fill-box"/> </svg> <svg id=svg_css_ex1 viewBox="0 0 100 100"> <path fill=none stroke=red d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z"/> </svg> <svg width=120 height=120 viewBox="0 0 120 120" version=1.1> <rect x=10 y=35 height=15 width=0> <animate attributeType=XML attributeName=width to=50 id=first begin=0s;third.end end=0s;third.end dur=4s /> </rect> <rect x=60 y=60 height=15 width=0> <animate attributeType=XML attributeName=width to=25 id=second begin=first.end dur=2s /> </rect> <rect x=85 y=85 height=15 width=0> <animate attributeType=XML attributeName=width to=25 id=third begin=second.end dur=2s /> </rect> <text x=10 y=20 text-anchor=middle>0s</text> <line x1=10 y1=25 x2=10 y2=105 stroke=grey stroke-width=.5 /> <text x=35 y=20 text-anchor=middle>2s</text> <line x1=35 y1=25 x2=35 y2=105 stroke=grey stroke-width=.5 /> <text x=60 y=20 text-anchor=middle>4s</text> <line x1=60 y1=25 x2=60 y2=105 stroke=grey stroke-width=.5 /> <text x=85 y=20 text-anchor=middle>6s</text> <line x1=85 y1=25 x2=85 y2=105 stroke=grey stroke-width=.5 /> <text x=110 y=20 text-anchor=middle>8s</text> <line x1=110 y1=25 x2=110 y2=105 stroke=grey stroke-width=.5 /> <line x1=10 y1=30 x2=110 y2=30 stroke=grey stroke-width=.5 /> <line x1=10 y1=105 x2=110 y2=105 stroke=grey stroke-width=.5 /> </svg> <svg> <filter id=colorMeTheSame> <feColorMatrix in=SourceGraphic values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/> </filter> </svg> <svg viewBox="0 0 420 200"> <filter id=convolveMatrix1 x=0 y=0 width=100% height=100%> <feConvolveMatrix kernelMatrix="1 1 0 0 0 0 0 0 -1"/> </filter> <filter id=convolveMatrix2 x=0 y=0 width=100% height=100%> <feConvolveMatrix kernelMatrix="-1 0 0 0 0 0 0 0 1"/> </filter> <image xlink:href=//developer.mozilla.org/files/6457/mdn_logo_only_color.png width=200 height=200 style=filter:url(#convolveMatrix1) /> <image xlink:href=//developer.mozilla.org/files/6457/mdn_logo_only_color.png width=200 height=200 style=filter:url(#convolveMatrix2);transform:translatex(220px) /> </svg> <svg viewBox="0 0 100 100"> <pattern id=p1 width=.25 height=.25 patternTransform="rotate(20) skewX(30) scale(1 0.5)"> <circle cx=10 cy=10 r=10 /> </pattern> <rect x=10 y=10 width=80 height=80 fill=url(#p1) /> </svg> <svg xml:lang=en viewBox="0 0 200 500"> <title>Scream—Comic Book text</title> <style>@font-face{font-family:"SequentialistBB";src:url(fonts/SequentialistBB.woff2)format("woff2"),url(fonts/SequentialistBB.woff)format("woff");font-style:normal;font-weight:400}text{font-family:SequentialistBB,Papyrus-condensed,Impact,sans-serif-condensed,sans-serif;font-stretch:condensed;writing-mode:tb;glyph-orientation-vertical:0;writing-mode:vertical-rl;text-orientation:upright;font-size:28px}tspan{font-size:75%}path{fill:#fff;stroke:#000;stroke-width:2}</style> <path d="M175,495 L140,465 C30,500 40,400 30,200 S70,10 100,10 S170,0 170,200 S170,400 150,450 Z"/> <text x=100 y=12 rotate="0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285 300 315 330 345 360" textLength=450> AAAaaaa<tspan>aaaa<tspan>aaaa<tspan>aahhh!</tspan>!</tspan>!</tspan>!</text> </svg> <svg viewBox="0 0 100 100"> <path id=MyPath fill=none stroke=silver d="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50"/> <text> <textPath path="M10,90 Q90,90 90,45 Q90,10 50,10 Q10,10 10,40 Q10,70 45,70 Q70,70 75,50"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> <svg viewBox="0 0 420 200"> <defs> <linearGradient id=gradient gradientUnits=userSpaceOnUse x1=0 y1=0 x2=200 y2=0> <stop stop-color=#ff0000 /> <stop offset=0.5 stop-color=#00ff00 /> <stop offset=1 stop-color=#0000ff /> </linearGradient> </defs> <filter id=componentTransfer1 x=0 y=0 width=100% height=100%> <feComponentTransfer> <feFuncR type=table tableValues="0 1"/> <feFuncG type=table tableValues="0 1"/> <feFuncB type=table tableValues="0 1"/> </feComponentTransfer> </filter> <filter id=componentTransfer2 x=0 y=0 width=100% height=100%> <feComponentTransfer> <feFuncR type=table tableValues="1 0"/> <feFuncG type=table tableValues="1 0"/> <feFuncB type=table tableValues="1 0"/> </feComponentTransfer> </filter> <rect width=200 height=200 fill=url(#gradient) style=filter:url(#componentTransfer1) /> <rect width=200 height=200 fill=url(#gradient) style=filter:url(#componentTransfer2);transform:translatex(220px) /> </svg> <svg width=450 height=1170> <rect class=ko x=10 y=10 height=25 width=430 /> <rect class=ok x=10 y=10 height=25 width=430 requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVG http://www.w3.org/TR/SVG11/feature#SVG"/> </svg> <svg viewBox="0 0 420 200"> <radialGradient id=gradient1 gradientUnits=userSpaceOnUse cx=100 cy=100 r=100 fx=100 fy=100> <stop offset=0% stop-color=darkblue /> <stop offset=50% stop-color=skyblue /> <stop offset=100% stop-color=darkblue /> </radialGradient> <radialGradient id=gradient2 gradientUnits=userSpaceOnUse cx=100 cy=100 r=100 fx=100 fy=100 gradientTransform="skewX(20) translate(-35, 0)"> <stop offset=0% stop-color=darkblue /> <stop offset=50% stop-color=skyblue /> <stop offset=100% stop-color=darkblue /> </radialGradient> <rect width=200 height=200 fill=url(#gradient1) /> <rect width=200 height=200 fill=url(#gradient2) style=transform:translatex(220px) /> </svg> <svg viewBox="-40 0 150 100"> <g fill=grey transform="rotate(-10 50 100) translate(-36 45.5) skewX(40) scale(1 0.5)"> <path id=heart d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z"/> </g> <use xlink:href=#heart fill=none stroke=red /> </svg>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/template/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <template id="productrow"> <div class="foo"> test </div> </template> <template> <!-- test --> <div>Test</div> </template> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/template/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><body><template id=productrow> <div class=foo> test </div> </template><template> <div>Test</div> </template>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/title/input.html
HTML
<!doctype html> <html lang="en"> <head> <title> Test Test </title> </head> <body> <div>test</div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/title/output.min.html
HTML
<!doctype html><html lang=en><title>Test Test</title><div>test</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/video/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <video src=" videofile.ogg " autoplay poster=" posterimage.jpg "> Sorry, your browser doesn't support embedded videos, but don't worry, you can <a href="videofile.ogg">download it</a> and watch it with your favorite video player! </video> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/element/video/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><video src=videofile.ogg autoplay poster=posterimage.jpg> Sorry, your browser doesn't support embedded videos, but don't worry, you can <a href=videofile.ogg>download it</a> and watch it with your favorite video player! </video>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/angular/input.html
HTML
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <template ngFor #hero [ngForOf]="heroes"> <hero-detail *ngIf="hero" [hero]="hero"></hero-detail> </template> <form (ngSubmit)="onSubmit(theForm)" #theForm="ngForm"> <div class="form-group"> <label for="name">Name</label> <input class="form-control" required ngControl="firstName" [(ngModel)]="currentHero.firstName"> </div> <button type="submit" [disabled]="!theForm.form.valid">Submit</button> </form> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/angular/output.min.html
HTML
<!doctype html><html lang=en><meta charset=UTF-8><title>Document</title><body><template ngfor #hero [ngforof]=heroes> <hero-detail *ngif=hero [hero]=hero></hero-detail> </template><form (ngsubmit)=onSubmit(theForm) #theform=ngForm><div class=form-group><label for=name>Name</label> <input class=form-control required ngcontrol=firstName [(ngmodel)]=currentHero.firstName></div><button type=submit [disabled]=!theForm.form.valid>Submit</button></form>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/basic/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body> <div id = "John&quot;&amp;Harry">Test</div> <div id = 'John&quot;&amp;HarryOther'>Test</div> <div id = 'John&quot;&lt;HarryOtherOther'>Test</div> <div id = 'John&nbsp;HarryOtherOtherOther'>Test</div> <div id = 'John<test>'>Test</div> <div id = 'JohnTest'>Test</div> <div> Registered Trademark Symbol: </div> <div>HTML Entities demo: </div> <p>®</p> <p>&copy;</p> <p>&#169;</p> <p> This Registered Trademark is a Script used in HTML document. </p> <div>I want to display &lt;br&gt; tag</div> <div>I want to display &lt;i&gt; tag</div> <div>The cent sign: &cent;</div> <div>The cent sign: &#162;</div> :) <a href="http://example.com">link</a> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/basic/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div id='John"&Harry'>Test</div> <div id='John"&HarryOther'>Test</div> <div id='John"<HarryOtherOther'>Test</div> <div id=John HarryOtherOtherOther>Test</div> <div id="John<test>">Test</div> <div id=JohnTest>Test</div> <div> Registered Trademark Symbol: </div> <div>HTML Entities demo: </div> <p>®</p> <p>©</p> <p>©</p> <p> This Registered Trademark is a Script used in HTML document. </p> <div>I want to display &lt;br> tag</div> <div>I want to display &lt;i> tag</div> <div>The cent sign: ¢</div> <div>The cent sign: ¢</div> :) <a href=http://example.com>link</a>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-1/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo <div>baz</div> bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-1/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-10/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo<div>baz</div>bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-10/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-11/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo <div>baz</div>bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-11/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-12/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo<div>baz</div> bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-12/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-13/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo <div> baz </div> bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-13/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-14/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo<div> baz </div>bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-14/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-15/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo <div> baz </div>bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-15/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-16/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo<div> baz </div> bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-16/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-2/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo<div>baz</div>bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-2/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-3/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo <div>baz</div>bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-3/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-4/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo<div>baz</div> bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-4/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-5/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo <div> baz </div> bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-5/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-6/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo<div> baz </div>bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-6/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-7/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo <div> baz </div>bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-7/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-8/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body>foo<div> baz </div> bar</body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-8/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title>foo<div>baz</div>bar
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-9/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> </head> <body><div>foo <div>baz</div> bar</div></body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/block-9/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>foo<div>baz</div>bar</div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-advanced-conservative/input.html
HTML
<!doctype html> <html lang="en"> <head> <title>Document</title> <meta name="test"> <style>a { color:red }</style> </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 data-test="test"> </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> <div> text <img src="https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg" alt="test"> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input><!-- b --> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href="test"> test </a> <a href="test">test</a> </div> <div> <a href="test">test</a><a href="test">test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div>&nbsp;fo&nbsp;o&nbsp;</div> <div>&#8202;fo&#8202;o&#8202;</div> <p><!-- test --></p> <p>a <!-- test --> b</p> <div class="leaveAlone"></div><div> foo bar </div> <div class="leaveAlone"><div></div><span> </span> foo bar</div> <div class="leaveAlone"><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> <!--test--> </div></div> <pre> foo <!-- bar --> baz </pre> <div> a <input> c </div> <div>Empty <!-- NOT --> </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href="#"> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a <!-- text --><!-- text --> b</div> <div>a <!-- text --> b <!-- text --> c <!-- text --> d</div> <div> <!-- test --> text <!-- test --></div> <span> <!-- test --> text </span> <span> text <!-- test --> </span> <div> <style>a { color: red }</style> <span>test</span> <style>a { color: red }</style> </div> <div> <style>a { color: red }</style> <style>a { color: red }</style> </div> <div> <style>a { color: red }</style> <span>test</span> <span>test</span> <style>a { color: red }</style> </div> <div> <script>console.log("test")</script> <script>console.log("test")</script> </div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-advanced-conservative/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><meta name=test><style>a{color:red}</style><div> test </div> <div> <p>blah</p> </div> <div><p>blah</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 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 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"> <a href=/docs/Web/SVG/Element/circle> <circle cx=50 cy=40 r=35 /> </a> <a href=/docs/Web/SVG/Element/text> <text x=50 y=90 text-anchor=middle> &lt;circle> </text> </a> </svg> <script data-test=test></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> <div> text <img src=https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg alt=test> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href=test> test </a> <a href=test>test</a> </div> <div> <a href=test>test</a><a href=test>test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div> fo o </div> <div> fo o </div> <p></p> <p>a b</p> <div class=leaveAlone></div><div> foo bar </div> <div class=leaveAlone><div></div><span> </span> foo bar</div> <div class=leaveAlone><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> </div></div> <pre> foo baz </pre> <div> a <input> c </div> <div>Empty </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href=#> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a b</div> <div>a b c d</div> <div> text </div> <span> text </span> <span> text </span> <div> <style>a{color:red}</style> <span>test</span> <style>a{color:red}</style> </div> <div> <style>a{color:red}</style> </div> <div> <style>a{color:red}</style> <span>test</span> <span>test</span> <style>a{color:red}</style> </div> <div> <script>console.log("test"),console.log("test")</script> </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-all/input.html
HTML
<!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 data-test="test"> </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> <div> text <img src="https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg" alt="test"> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input><!-- b --> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href="test"> test </a> <a href="test">test</a> </div> <div> <a href="test">test</a><a href="test">test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div>&nbsp;fo&nbsp;o&nbsp;</div> <div>&#8202;fo&#8202;o&#8202;</div> <p><!-- test --></p> <p>a <!-- test --> b</p> <div class="leaveAlone"></div><div> foo bar </div> <div class="leaveAlone"><div></div><span> </span> foo bar</div> <div class="leaveAlone"><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> <!--test--> </div></div> <pre> foo <!-- bar --> baz </pre> <div> a <input> c </div> <div>Empty <!-- NOT --> </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href="#"> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a <!-- text --><!-- text --> b</div> <div>a <!-- text --> b <!-- text --> c <!-- text --> d</div> <div> <!-- test --> text <!-- test --></div> <span> <!-- test --> text </span> <span> text <!-- test --> </span> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-all/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>test</div><div><p>blah</div><div><p>blah</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.<ul><li>A<li>B<li>C</ul><p>Hey, I<em>just</em>found out about this<strong>cool</strong>website!<sup>[1]</sup><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 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 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"><a href=/docs/Web/SVG/Element/circle><circle cx=50 cy=40 r=35 /></a><a href=/docs/Web/SVG/Element/text><text x=50 y=90 text-anchor=middle>&lt;circle></text></a></svg><script data-test=test></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><div>text<img src=https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg alt=test>test</div><span>test<script>console.log("test")</script>test</span><span>test<script>console.log("test")</script>test</span><div><p>blah</div><div>test<br>test</div><div>test<wbr>test</div><div>a<input>c</div><div><div>a</div><div>b</div></div><div><span>a</span><span>b</span></div><div><div>test</div><span>test</span></div><div><div>test</div><span>test</span></div><div><span>test</span><div>test</div></div><div><span>test</span><span>test</span></div><div><div>test</div><div>test</div></div><div><span>test</span><p>test<p>test<p>test</div><div><p>test<p>test<p>test</p><span>test</span></div><div><a href=test>test</a><a href=test>test</a></div><div><a href=test>test</a><a href=test>test</a></div><div><p>blah</div><div>test<button>test</button></div><div><button>test</button><button>test</button></div><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo</div><div><span>foo</span></div><p>foo<img>bar<p>foo<img>bar<p>foo<img>bar<p>foo<img>bar<p>foo<wbr>bar<p>foo<br>bar<p>foo<nobr>a</nobr>bar<div> fo o </div><div> fo o </div><p><p>a b<div class=leaveAlone></div><div>foo bar</div><div class=leaveAlone><div></div><span></span>foo bar</div><div class=leaveAlone><span></span>foo bar</div><p>foo<span></span><p>foo<span></span><div>foo<button>test</button>foo</div><div>foo<button>test</button>foo<button>test</button>foo</div><div>foo<span>foo</span>foo</div><div>foo<span>foo</span>foo</div><div><span>a</span>b<span>c</span></div><div><span>a</span>b<span>c</span></div><div><span>a</span>b<span>c</span></div><div>foo<span>baz</span></div><div>foo<span>baz</span></div><div>foo<span>baz</span></div><div>foo<span>baz</span></div><span>test</span><span><span><span><span>foo<span>baz</span></span></span></span></span><span><span><span><span>foo<span>baz</span></span></span></span></span><span>test</span><div>test</div><span><span><span><span>foo<span>baz</span></span></span></span></span><span><span><span><span>foo<span>baz</span></span></span></span></span><div>test</div><div><div></div></div><pre> foo baz </pre><div>a<input>c</div><div>Empty</div><!--[if lte IE 6]><span>A</span><span title=" sigificant whitespace ">blah blah</span><![endif]--><div><a href=#><span><b>foo</b><i>bar</i></span></a></div><div>a b</div><div>a b c d</div><div>text</div><span>text</span><span>text</span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-conservative/input.html
HTML
<!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 data-test="test"> </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> <div> text <img src="https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg" alt="test"> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input><!-- b --> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href="test"> test </a> <a href="test">test</a> </div> <div> <a href="test">test</a><a href="test">test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div>&nbsp;fo&nbsp;o&nbsp;</div> <div>&#8202;fo&#8202;o&#8202;</div> <p><!-- test --></p> <p>a <!-- test --> b</p> <div class="leaveAlone"></div><div> foo bar </div> <div class="leaveAlone"><div></div><span> </span> foo bar</div> <div class="leaveAlone"><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><b> foo </b></div> <div><div> <!--test--> </div></div> <pre> foo <!-- bar --> baz </pre> <div> a <input> c </div> <div>Empty <!-- NOT --> </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href="#"> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a <!-- text --><!-- text --> b</div> <div>a <!-- text --> b <!-- text --> c <!-- text --> d</div> <div> <!-- test --> text <!-- test --></div> <span> <!-- test --> text </span> <span> text <!-- test --> </span> <div> <script>console.log("test")</script> <script>console.log("test")</script> </div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-conservative/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div> test </div> <div> <p>blah</p> </div> <div><p>blah</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 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 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"> <a href=/docs/Web/SVG/Element/circle> <circle cx=50 cy=40 r=35 /> </a> <a href=/docs/Web/SVG/Element/text> <text x=50 y=90 text-anchor=middle> &lt;circle> </text> </a> </svg> <script data-test=test></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> <div> text <img src=https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg alt=test> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href=test> test </a> <a href=test>test</a> </div> <div> <a href=test>test</a><a href=test>test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div> fo o </div> <div> fo o </div> <p></p> <p>a b</p> <div class=leaveAlone></div><div> foo bar </div> <div class=leaveAlone><div></div><span> </span> foo bar</div> <div class=leaveAlone><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><b> foo </b></div> <div><div> </div></div> <pre> foo baz </pre> <div> a <input> c </div> <div>Empty </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href=#> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a b</div> <div>a b c d</div> <div> text </div> <span> text </span> <span> text </span> <div> <script>console.log("test")</script> <script>console.log("test")</script> </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-disabled/input.html
HTML
<!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 data-test="test"> </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> <div> text <img src="https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg" alt="test"> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input><!-- b --> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href="test"> test </a> <a href="test">test</a> </div> <div> <a href="test">test</a><a href="test">test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div>&nbsp;fo&nbsp;o&nbsp;</div> <div>&#8202;fo&#8202;o&#8202;</div> <p><!-- test --></p> <p>a <!-- test --> b</p> <div class="leaveAlone"></div><div> foo bar </div> <div class="leaveAlone"><div></div><span> </span> foo bar</div> <div class="leaveAlone"><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> <!--test--> </div></div> <pre> foo <!-- bar --> baz </pre> <div> a <input> c </div> <div>Empty <!-- NOT --> </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href="#"> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a <!-- text --><!-- text --> b</div> <div>a <!-- text --> b <!-- text --> c <!-- text --> d</div> <div> <!-- test --> text <!-- test --></div> <span> <!-- test --> text </span> <span> text <!-- test --> </span> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-disabled/output.min.html
HTML
<!doctype html><html lang=en><head> <title>Document</title> </head> <body> <div> test </div> <div> <p>blah</p> </div> <div><p>blah</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 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 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"> <a href=/docs/Web/SVG/Element/circle> <circle cx=50 cy=40 r=35 /> </a> <a href=/docs/Web/SVG/Element/text> <text x=50 y=90 text-anchor=middle> &lt;circle> </text> </a> </svg> <script data-test=test></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> <div> text <img src=https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg alt=test> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href=test> test </a> <a href=test>test</a> </div> <div> <a href=test>test</a><a href=test>test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div> fo o </div> <div> fo o </div> <p></p> <p>a b</p> <div class=leaveAlone></div><div> foo bar </div> <div class=leaveAlone><div></div><span> </span> foo bar</div> <div class=leaveAlone><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> </div></div> <pre> foo baz </pre> <div> a <input> c </div> <div>Empty </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href=#> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a b</div> <div>a b c d</div> <div> text </div> <span> text </span> <span> text </span>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-only-metdata/input.html
HTML
<!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 data-test="test"> </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> <div> text <img src="https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg" alt="test"> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input><!-- b --> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href="test"> test </a> <a href="test">test</a> </div> <div> <a href="test">test</a><a href="test">test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div>&nbsp;fo&nbsp;o&nbsp;</div> <div>&#8202;fo&#8202;o&#8202;</div> <p><!-- test --></p> <p>a <!-- test --> b</p> <div class="leaveAlone"></div><div> foo bar </div> <div class="leaveAlone"><div></div><span> </span> foo bar</div> <div class="leaveAlone"><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> <!--test--> </div></div> <pre> foo <!-- bar --> baz </pre> <div> a <input> c </div> <div>Empty <!-- NOT --> </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href="#"> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a <!-- text --><!-- text --> b</div> <div>a <!-- text --> b <!-- text --> c <!-- text --> d</div> <div> <!-- test --> text <!-- test --></div> <span> <!-- test --> text </span> <span> text <!-- test --> </span> <div> <style>a { color: red }</style> <span>test</span> <style>a { color: red }</style> </div> <div> <style>a { color: red }</style> <style>a { color: red }</style> </div> <div> <style>a { color: red }</style> <span>test</span> <span>test</span> <style>a { color: red }</style> </div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-only-metdata/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div> test </div> <div> <p>blah</p> </div> <div><p>blah</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 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 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"> <a href=/docs/Web/SVG/Element/circle> <circle cx=50 cy=40 r=35 /> </a> <a href=/docs/Web/SVG/Element/text> <text x=50 y=90 text-anchor=middle> &lt;circle> </text> </a> </svg> <script data-test=test></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> <div> text <img src=https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg alt=test> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href=test> test </a> <a href=test>test</a> </div> <div> <a href=test>test</a><a href=test>test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div> fo o </div> <div> fo o </div> <p></p> <p>a b</p> <div class=leaveAlone></div><div> foo bar </div> <div class=leaveAlone><div></div><span> </span> foo bar</div> <div class=leaveAlone><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> </div></div> <pre> foo baz </pre> <div> a <input> c </div> <div>Empty </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href=#> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a b</div> <div>a b c d</div> <div> text </div> <span> text </span> <span> text </span> <div> <style>a{color:red}</style> <span>test</span> <style>a{color:red}</style> </div> <div> <style>a{color:red}</style> </div> <div> <style>a{color:red}</style> <span>test</span> <span>test</span> <style>a{color:red}</style> </div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-smart/input.html
HTML
<!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 data-test="test"> </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> <div> text <img src="https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg" alt="test"> test </div> <span>test<script>console.log("test")</script>test</span> <span>test <script>console.log("test")</script> test</span> <div> <p>blah</p> </div> <div>test <br> test</div> <div>test <wbr> test</div> <div> a <input><!-- b --> c </div> <div> <div>a</div> <div>b</div> </div> <div><span> a </span> <span>b</span></div> <div><div>test</div> <span>test</span></div> <div> <div>test</div> <span>test</span> </div> <div> <span>test</span> <div>test</div> </div> <div> <span>test</span> <span>test</span> </div> <div> <div>test</div> <div>test</div> </div> <div> <span>test</span> <p>test</p> <p>test</p> <p>test</p> </div> <div> <p>test</p> <p>test</p> <p>test</p> <span>test</span> </div> <div> <a href="test"> test </a> <a href="test">test</a> </div> <div> <a href="test">test</a><a href="test">test</a> </div> <div> <p>blah</p> </div> <div>test <button>test</button></div> <div><button>test</button> <button>test</button></div> <div>foo <button>test</button> foo</div> <div>foo<button>test</button>foo</div> <div>foo <button>test</button>foo</div> <div>foo<button>test</button> foo</div> <div>foo<button> test </button>foo</div> <div>foo <button> test </button>foo</div> <div>foo<button> test </button> foo</div> <div><span> foo </span></div> <p>foo <img> bar</p> <p>foo<img>bar</p> <p>foo <img>bar</p> <p>foo<img> bar</p> <p>foo <wbr> bar</p> <p>foo <br> bar</p> <p>foo <nobr>a</nobr> bar</p> <div>&nbsp;fo&nbsp;o&nbsp;</div> <div>&#8202;fo&#8202;o&#8202;</div> <p><!-- test --></p> <p>a <!-- test --> b</p> <div class="leaveAlone"></div><div> foo bar </div> <div class="leaveAlone"><div></div><span> </span> foo bar</div> <div class="leaveAlone"><span> </span> foo bar</div> <p>foo <span></span></p> <p>foo<span></span></p> <div>foo <button> test </button> foo</div> <div>foo <button> test </button> foo <button> test </button> foo</div> <div> foo <span>foo</span> foo</div> <div> foo<span> foo</span>foo </div> <div> <span>a </span> b<span> c</span> </div> <div> <span>a </span> b <span> c</span> </div> <div> <span>a </span> b <span>c</span> </div> <div>foo <span> baz</span></div> <div>foo <span>baz</span></div> <div>foo<span> baz</span></div> <div>foo<span>baz</span></div> <span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span> <div>test </div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test </div> <div><div> <!--test--> </div></div> <pre> foo <!-- bar --> baz </pre> <div> a <input> c </div> <div>Empty <!-- NOT --> </div> <!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--> <div> <a href="#"> <span> <b> foo </b> <i> bar </i> </span> </a> </div> <div>a <!-- text --><!-- text --> b</div> <div>a <!-- text --> b <!-- text --> c <!-- text --> d</div> <div> <!-- test --> text <!-- test --></div> <span> <!-- test --> text </span> <span> text <!-- test --> </span> <div> <span>test</span> <base> <span>test</span> </div> <div> <span>test</span> <command>test</command> <span>test</span> </div> <div> <span>test</span> <link rel="stylesheet" href=""> <span>test</span> </div> <div> <span>test</span> <meta name="content"> <span>test</span> </div> <div> <span>test</span> <script>console.log("test")</script> <span>test</span> </div> <div> <span>test</span> <style>a { color: red; }</style> <span>test</span> </div> <div> <span>test</span> <title>test</title> <span>test</span> </div> <div> <meta name="test"> <meta name="test"> </div> <div> <link rel="stylesheet" href=""> <link rel="stylesheet" href=""> </div> <div> <script>console.log("test")</script> <script>console.log("test")</script> </div> <div> <script>console.log("test")</script> <span>test</span> <script>console.log("test")</script> </div> <div> <style>a { color: red; }</style> <style>a { color: red; }</style> </div> <div> <script>console.log("test")</script> <style>a { color: red; }</style> </div> <div> <span itemscope><meta itemprop="name" content="The Castle">test</span> <span>test</span> </div> <div> <meta name="test"> </div> <div> <style>a { color: red; }</style> </div> <div> <meta name="test"> <div>test</div> <meta name="test"> </div> <div> <meta name="test"> <span>test</span> <meta name="test"> </div> <svg> <title>test</title> <metadata>test</metadata> <desc>test</desc> </svg> <svg> <a>test</a> <a>test</a> </svg> <svg xmlns="http://www.w3.org/2000/svg"> <text x="20" y="35"> <tspan font-weight="bold" fill="red">This is bold and red</tspan> <tspan font-weight="bold" fill="red">This is bold and red</tspan> </text> </svg> <svg> <tspan>test</tspan> <foreignObject>test</foreignObject> </svg> <svg xmlns="http://www.w3.org/2000/svg"> <text x="20" y="35"> <tspan font-weight="bold" fill="red">This is bold and red</tspan> <tspan font-weight="bold" fill="red">This is bold and red</tspan> </text> </svg> <svg 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> <script> console.log( "test" ); </script> </svg> <svg> <style> a { color: red; } </style> </svg> <div> <span>test</span> a <!-- test -->b <span>test</span> <span>test</span> a<!-- test --> b <span>test</span> <span>test</span> a <!-- test --> b <span>test</span> </div> <div><foo-bar> <span>test</span> </foo-bar> <foo-bar> <span>test</span> </foo-bar></div> <div><svg> <linearGradient id=gradient /> </svg> <span>a</span></div> </body> </html>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/collapse-whitespace-smart/output.min.html
HTML
<!doctype html><html lang=en><title>Document</title><div>test</div><div><p>blah</div><div><p>blah</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.<ul><li>A<li>B<li>C</ul><p>Hey, I <em>just</em> found out about this <strong>cool</strong> website! <sup>[1]</sup><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 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 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"> <a href=/docs/Web/SVG/Element/circle><circle cx=50 cy=40 r=35 /> </a><a href=/docs/Web/SVG/Element/text><text x=50 y=90 text-anchor=middle>&lt;circle></text></a></svg><script data-test=test></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><div>text <img src=https://colourlex.com/wp-content/uploads/2021/02/vine-black-painted-swatch.jpg alt=test> test</div><span>test<script>console.log("test")</script>test</span> <span>test<script>console.log("test")</script> test</span><div><p>blah</div><div>test <br> test</div><div>test <wbr> test</div><div>a <input> c</div><div><div>a</div><div>b</div></div><div><span> a </span><span>b</span></div><div><div>test</div><span>test</span></div><div><div>test</div><span>test</span></div><div><span>test</span><div>test</div></div><div><span>test</span> <span>test</span></div><div><div>test</div><div>test</div></div><div><span>test</span><p>test<p>test<p>test</div><div><p>test<p>test<p>test</p><span>test</span></div><div><a href=test> test </a><a href=test>test</a></div><div><a href=test>test</a><a href=test>test</a></div><div><p>blah</div><div>test <button>test</button></div><div><button>test</button> <button>test</button></div><div>foo <button>test</button> foo</div><div>foo<button>test</button>foo</div><div>foo <button>test</button>foo</div><div>foo<button>test</button> foo</div><div>foo<button>test</button>foo</div><div>foo <button>test</button>foo</div><div>foo<button>test</button> foo</div><div><span> foo </span></div><p>foo <img> bar<p>foo<img>bar<p>foo <img>bar<p>foo<img> bar<p>foo <wbr> bar<p>foo <br> bar<p>foo <nobr>a</nobr> bar<div> fo o </div><div> fo o </div><p><p>a b<div class=leaveAlone></div><div>foo bar</div><div class=leaveAlone><div></div><span> </span>foo bar</div><div class=leaveAlone><span> </span>foo bar</div><p>foo <span></span><p>foo<span></span><div>foo <button>test</button> foo</div><div>foo <button>test</button> foo <button>test</button> foo</div><div>foo <span>foo</span> foo</div><div>foo<span> foo</span>foo</div><div><span>a </span>b<span> c</span></div><div><span>a </span>b <span>c</span></div><div><span>a </span>b <span>c</span></div><div>foo <span>baz</span></div><div>foo <span>baz</span></div><div>foo<span> baz</span></div><div>foo<span>baz</span></div><span>test </span><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><span>test </span><div>test</div><span><span><span><span>foo <span>baz</span></span></span></span></span> <span><span><span><span>foo <span>baz</span></span></span></span></span><div>test</div><div><div></div></div><pre> foo baz </pre><div>a <input> c</div><div>Empty</div><!--[if lte IE 6]> <span>A</span> <span title=" sigificant whitespace ">blah blah</span> <![endif]--><div><a href=#> <span><b>foo </b><i> bar </i></span></a></div><div>a b</div><div>a b c d</div><div>text</div><span> text </span><span> text </span><div><span>test</span> <span>test</span></div><div><span>test</span> <command>test</command><span>test</span></div><div><span>test</span><link rel=stylesheet href=""> <span>test</span></div><div><span>test</span><meta name=content> <span>test</span></div><div><span>test</span><script>console.log("test")</script> <span>test</span></div><div><span>test</span><style>a{color:red}</style> <span>test</span></div><div><span>test</span><title>test</title> <span>test</span></div><div><meta name=test><meta name=test></div><div><link rel=stylesheet href=""><link rel=stylesheet href=""></div><div><script>console.log("test"),console.log("test")</script></div><div><script>console.log("test")</script> <span>test</span><script>console.log("test")</script></div><div><style>a{color:red}</style></div><div><script>console.log("test")</script><style>a{color:red}</style></div><div><span itemscope><meta itemprop=name content="The Castle">test</span> <span>test</span></div><div><meta name=test></div><div><style>a{color:red}</style></div><div><meta name=test><div>test</div><meta name=test></div><div><meta name=test> <span>test</span><meta name=test></div><svg> <title>test</title> <metadata>test</metadata> <desc>test</desc> </svg><svg> <a>test</a> <a>test</a> </svg><svg><text x=20 y=35><tspan font-weight=bold fill=red>This is bold and red</tspan> <tspan font-weight=bold fill=red>This is bold and red</tspan></text></svg><svg> <tspan>test</tspan><foreignObject>test</foreignObject></svg><svg><text x=20 y=35><tspan font-weight=bold fill=red>This is bold and red</tspan> <tspan font-weight=bold fill=red>This is bold and red</tspan></text></svg><svg 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 width=100 height=100 style=fill:url(#gradient) /> <circle cx=50 cy=50 r=30 style=fill:url(#gradient) /> </svg><svg> <script>console.log("test")</script></svg><svg> <style>a{color:red}</style></svg><div><span>test</span> a b <span>test</span> <span>test</span> a b <span>test</span> <span>test</span> a b <span>test</span></div><div><foo-bar> <span>test</span> </foo-bar> <foo-bar> <span>test</span> </foo-bar></div><div><svg> <linearGradient id=gradient /> </svg><span>a</span></div>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_html_minifier/tests/fixture/text/empty-1/input.html
HTML
<!doctype html> <body></body>
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University