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/attribute/javascript-urls/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><a href='javascript:alert("test")'>a</a>
<a href='javascript:alert("test")'>b</a>
<a href=" JAVASCRIPT: broken;;( ">b</a>
<iframe src='javascript:alert("test")' frameborder=0></iframe>
<svg viewBox="0 0 100 100">
<a href='javascript:alert("test")'>
<circle cx=50 cy=40 r=35 />
</a>
<a href='javascript:alert("test")'>
<text x=50 y=90 text-anchor=middle><circle></text>
</a>
</svg> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/link/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link rel="stylesheet" href="a.css">
<link rel="stylesheet" href="b.css" type="text/css">
<link rel="stylesheet" href="b.css" type="TEXT/CSS">
<link rel="stylesheet" href="c.css" type=" text/css ">
<link rel="stylesheet" href="d.css" type="">
<link rel="stylesheet" href="d.css" type="unknown/unknown">
<link href="default.css" rel="stylesheet" title="Default Style">
<link href="fancy.css" rel="stylesheet alternate" title="Fancy">
<link href="basic.css" rel="stylesheet alternate" title="Basic">
<link rel="stylesheet foo bar" href="d.css">
<link rel="stylesheet foo bar" href="d.css" blocking="render a">
<link rel="icon" href="demo_icon.gif" type="image/gif" sizes="32x32 16x16">
<link rel="apple-touch-icon-precomposed" sizes="512x512 114x114"
href="apple-icon-114.png" type="image/png">
<link rel="apple-touch-icon" sizes="512x512 114x114"
href="apple-icon-114.png" type="image/png">
<link rel="icon" href="/favicon.ico" sizes="any"><!-- 32×32 -->
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"><!-- 180×180 -->
<link rel="manifest" href="/manifest.webmanifest">
<link rel="stylesheet" href="b.css" type="text/css" media="all">
</head>
<body>
<div>test</div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/link/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=a.css><link rel=stylesheet href=b.css><link rel=stylesheet href=b.css><link rel=stylesheet href=c.css><link rel=stylesheet href=d.css type=""><link rel=stylesheet href=d.css type=unknown/unknown><link href=default.css rel=stylesheet title="Default Style"><link href=fancy.css rel="alternate stylesheet" title=Fancy><link href=basic.css rel="alternate stylesheet" title=Basic><link rel="bar foo stylesheet" href=d.css><link rel="bar foo stylesheet" href=d.css blocking="a render"><link rel=icon href=demo_icon.gif type=image/gif sizes="16x16 32x32"><link rel=apple-touch-icon-precomposed sizes="114x114 512x512" href=apple-icon-114.png type=image/png><link rel=apple-touch-icon sizes="114x114 512x512" href=apple-icon-114.png type=image/png><link rel=icon href=/favicon.ico sizes=any><link rel=icon href=/icon.svg type=image/svg+xml><link rel=apple-touch-icon href=/apple-touch-icon.png><link rel=manifest href=/manifest.webmanifest><link rel=stylesheet href=b.css><div>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/marquee/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<marquee scrollamount="6">
Lorem ipsum dolor sit amet...
</marquee>
<marquee scrolldelay="85">
Lorem ipsum dolor sit amet...
</marquee>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/marquee/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><marquee>
Lorem ipsum dolor sit amet...
</marquee>
<marquee>
Lorem ipsum dolor sit amet...
</marquee> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/media/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link rel="stylesheet" type="text/css" href="//msiter.ru/theme.css">
<link rel="stylesheet" type="text/css" href="//msiter.ru/print.css" media="print">
<link rel="stylesheet" type="text/css" href="//msiter.ru/theme.css" media="(prefers-color-scheme: dark)">
<link rel="preload" as="image"
imagesrcset="dog-cropped-1x.jpg, dog-cropped-2x.jpg 2x"
media="(max-width: 800px)">
<link rel="preload" as="image"
imagesrcset="dog-wide-1x.jpg, dog-wide-2x.jpg 2x"
media="(min-width: 801px)">
<style media="screen and (min-width: 900px)">
.class {
color: red;
}
</style>
<style media="(min-width: 900px) and (min-width: 800px)">
.class {
color: red;
}
</style>
</head>
<body>
<picture>
<source srcset="dog-cropped-1x.jpg, dog-cropped-2x.jpg 2x"
media="(max-width: 800px)">
<img src="dog-wide-1x.jpg" srcset="dog-wide-2x.jpg 2x"
alt="An awesome dog">
</picture>
<style media="screen and (min-width: 30em) and (orientation: landscape)">
.class {
color: red;
}
</style>
<style media="(min-width: 1em) and (max-width: 500em)">
.class {
color: red;
}
</style>
<style media="(30em <= width <= 50em )">
.class {
color: red;
}
</style>
<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
<style media="(min-width: 1000px)">
circle {
fill: gold;
stroke: maroon;
stroke-width: 2px;
}
</style>
<circle cx="5" cy="5" r="4" />
</svg>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/media/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=//msiter.ru/theme.css><link rel=stylesheet href=//msiter.ru/print.css media=print><link rel=stylesheet href=//msiter.ru/theme.css media=(prefers-color-scheme:dark)><link rel=preload as=image imagesrcset="dog-cropped-1x.jpg,dog-cropped-2x.jpg 2x" media=(max-width:800px)><link rel=preload as=image imagesrcset="dog-wide-1x.jpg,dog-wide-2x.jpg 2x" media=(min-width:801px)><style media="screen and (min-width:900px)">.class{color:red}</style><style media="(min-width:900px)and (min-width:800px)">.class{color:red}</style><picture>
<source srcset="dog-cropped-1x.jpg,dog-cropped-2x.jpg 2x" media=(max-width:800px)>
<img src=dog-wide-1x.jpg srcset="dog-wide-2x.jpg 2x" alt="An awesome dog">
</picture>
<style media="screen and (min-width:30em)and (orientation:landscape)">.class{color:red}</style><style media="(min-width:1em)and (max-width:500em)">.class{color:red}</style><style media="(30em<=width<=50em)">.class{color:red}</style>
<svg viewBox="0 0 10 10">
<style media=(min-width:1e3px)>circle{fill:gold;stroke:maroon;stroke-width:2px}</style>
<circle cx=5 cy=5 r=4 />
</svg> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/meter/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<meter id="fuel"
min="0" max="100"
low="33" high="66" optimum="80"
value="50">
at 50/100
</meter>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/meter/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><meter id=fuel min=0 max=100 low=33 high=66 optimum=80 value=50>
at 50/100
</meter> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/ol/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<ol type="1">
<li>Mix flour, baking powder, sugar, and salt.</li>
<li>In another bowl, mix eggs, milk, and oil.</li>
<li>Stir both mixtures together.</li>
<li>Fill muffin tray 3/4 full.</li>
<li>Bake for 20 minutes.</li>
</ol>
<ol type="1" start="1">
<li>United Kingdom
<li>Switzerland
<li>United States
<li>Norway
</ol>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/ol/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><ol type=1>
<li>Mix flour, baking powder, sugar, and salt.</li>
<li>In another bowl, mix eggs, milk, and oil.</li>
<li>Stir both mixtures together.</li>
<li>Fill muffin tray 3/4 full.</li>
<li>Bake for 20 minutes.</li>
</ol>
<ol type=1 start=1>
<li>United Kingdom
<li>Switzerland
<li>United States
<li>Norway
</ol> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/onclick/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>
<a href="http://www.google.co.uk/" onclick="return (confirm('Follow' + ' this link?'))">Google</a>
<a href="http://www.google.co.uk/" onclick="alert( 'test' + 'test');">Google</a>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/onclick/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><a href=http://www.google.co.uk/ onclick='return confirm("Follow this link?")'>Google</a>
<a href=http://www.google.co.uk/ onclick='alert("testtest")'>Google</a> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/part/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<style>
c-e::part(textspan) { color: red; }
</style>
<template id="c-e-template">
<span part="
textspan
a
b
c
">This text will be red</span>
</template>
<c-e></c-e>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/part/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><body><style>c-e::part(textspan){color:red}</style><template id=c-e-template>
<span part="a b c textspan">This text will be red</span>
</template>
<c-e></c-e> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/progress/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<progress max="1"></progress>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/progress/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><progress max=1></progress> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/quote/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>
<div data-test=test></div>
<div data-test='test'></div>
<div data-test="test"></div>
<div data-test="test test"></div>
<div data-test="test
test"></div>
<div data-test=" test ' test ' test"></div>
<div data-test=' test " test " test'></div>
<div data='{ "test": "test" }'></div>
<div data="{ 'test': 'test' }"></div>
<div data="{"test":"\\"test\\""}"></div>'
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/quote/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><div data-test=test></div>
<div data-test=test></div>
<div data-test=test></div>
<div data-test="test test"></div>
<div data-test="test
test"></div>
<div data-test=" test ' test ' test"></div>
<div data-test=' test " test " test'></div>
<div data='{ "test": "test" }'></div>
<div data="{ 'test': 'test' }"></div>
<div data='{"test":"\\"test\\""}'></div>' | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/rel/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<a href="#" rel="value1 nofollow">Link</a>
<a href="#" rel=" value1 nofollow ">Link</a>
<a href="#" rel=" nofollow ">Link</a>
<form rel="noreferrer nofollow" action="mypage.php">
<input type="search" placeholder="search here" />
<input type="button" value="search" />
</form>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/rel/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><a href=# rel="nofollow value1">Link</a>
<a href=# rel="nofollow value1">Link</a>
<a href=# rel=nofollow>Link</a>
<form rel="nofollow noreferrer" action=mypage.php>
<input type=search placeholder="search here">
<input type=button value=search>
</form> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/remove_redundant_attributes-all/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link rel="stylesheet" href="a.css">
<link rel="stylesheet" href="b.css" type="text/css">
<link rel="stylesheet" href="b.css" type="TEXT/CSS">
<link rel="stylesheet" href="c.css" type=" text/css ">
<link rel="stylesheet" href="d.css" type="">
<link rel="stylesheet" href="d.css" type="unknown/unknown">
</head>
<body>
<div>test</div>
<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"></path>
</svg>
<form>
<div>
<label for="uname">Choose a username: </label>
<input type="text" id="uname" name="name" />
</div>
<div>
<button>Submit</button>
</div>
</form>
<form action="handler.php" method="get">
<input type="text" name="str">
<input type="submit" value="send">
<input type=" TEXT " value="foo">
<input type="checkbox">
</form>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/remove_redundant_attributes-all/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=a.css><link rel=stylesheet href=b.css><link rel=stylesheet href=b.css><link rel=stylesheet href=c.css><link rel=stylesheet href=d.css type=""><link rel=stylesheet href=d.css type=unknown/unknown><div>test</div>
<svg width=2rem height=2rem fill=currentColor class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
</svg>
<form>
<div>
<label for=uname>Choose a username: </label>
<input id=uname name=name>
</div>
<div>
<button>Submit</button>
</div>
</form>
<form action=handler.php>
<input name=str>
<input type=submit value=send>
<input value=foo>
<input type=checkbox>
</form> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/remove_redundant_attributes-none/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link rel="stylesheet" href="a.css">
<link rel="stylesheet" href="b.css" type="text/css">
<link rel="stylesheet" href="b.css" type="TEXT/CSS">
<link rel="stylesheet" href="c.css" type=" text/css ">
<link rel="stylesheet" href="d.css" type="">
<link rel="stylesheet" href="d.css" type="unknown/unknown">
</head>
<body>
<div>test</div>
<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"></path>
</svg>
<form>
<div>
<label for="uname">Choose a username: </label>
<input type="text" id="uname" name="name" />
</div>
<div>
<button>Submit</button>
</div>
</form>
<form action="handler.php" method="get">
<input type="text" name="str">
<input type="submit" value="send">
<input type=" TEXT " value="foo">
<input type="checkbox">
</form>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/remove_redundant_attributes-none/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=a.css><link rel=stylesheet href=b.css type=text/css><link rel=stylesheet href=b.css type=text/css><link rel=stylesheet href=c.css type=text/css><link rel=stylesheet href=d.css type=""><link rel=stylesheet href=d.css type=unknown/unknown><div>test</div>
<svg xmlns=http://www.w3.org/2000/svg width=2rem height=2rem fill=currentColor class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
</svg>
<form>
<div>
<label for=uname>Choose a username: </label>
<input type=text id=uname name=name>
</div>
<div>
<button>Submit</button>
</div>
</form>
<form action=handler.php method=get>
<input type=text name=str>
<input type=submit value=send>
<input type=text value=foo>
<input type=checkbox>
</form> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/remove_redundant_attributes-smart/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link rel="stylesheet" href="a.css">
<link rel="stylesheet" href="b.css" type="text/css">
<link rel="stylesheet" href="b.css" type="TEXT/CSS">
<link rel="stylesheet" href="c.css" type=" text/css ">
<link rel="stylesheet" href="d.css" type="">
<link rel="stylesheet" href="d.css" type="unknown/unknown">
</head>
<body>
<div>test</div>
<svg xmlns="http://www.w3.org/2000/svg" width="2rem" height="2rem" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"></path>
</svg>
<form>
<div>
<label for="uname">Choose a username: </label>
<input type="text" id="uname" name="name" />
</div>
<div>
<button>Submit</button>
</div>
</form>
<form action="handler.php" method="get">
<input type="text" name="str">
<input type="submit" value="send">
<input type=" TEXT " value="foo">
<input type="checkbox">
</form>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/remove_redundant_attributes-smart/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=a.css><link rel=stylesheet href=b.css><link rel=stylesheet href=b.css><link rel=stylesheet href=c.css><link rel=stylesheet href=d.css type=""><link rel=stylesheet href=d.css type=unknown/unknown><div>test</div>
<svg width=2rem height=2rem fill=currentColor class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
</svg>
<form>
<div>
<label for=uname>Choose a username: </label>
<input type=text id=uname name=name>
</div>
<div>
<button>Submit</button>
</div>
</form>
<form action=handler.php method=get>
<input type=text name=str>
<input type=submit value=send>
<input type=text value=foo>
<input type=checkbox>
</form> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/script-type/input.html | HTML | <!doctype html>
<script type="text/javascript" defer>
console.log();
</script>
<script type="application/javascript">
console.log();
</script>
<script type="application/JAVASCRIPT">
console.log();
</script>
<script type="module">
console.log();
</script>
<script type="MODULE">
console.log();
</script>
<script>window.jQuery || document.write('<script src="jquery.js"><\/script>')</script>
<script type="text/html">
<div>
test
</div>
<!-- aa -->\n
</script>
<script type="">alert(1)</script>
<script type="modules">alert(1)</script>
<script type="text/javascript">alert(1)</script>
<SCRIPT TYPE=" text/javascript ">alert(1)</script>
<script type="module" src="app.mjs"></script>
<script nomodule defer src="classic-app-bundle.js"></script>
<script type="application/javascript;version=1.8">alert(1)</script>
<script type="text/vbscript">MsgBox("foo bar")</script>
<script type="">MsgBox("foo bar")</script>
<script type=";;;;;">MsgBox("foo bar")</script>
<script language="JavaScript">alert(1)</script>
<script language="JavaScript1.2">alert(1)</script>
<script language="JavaScript1.3">alert(1)</script>
<script language="JavaScript1.4">alert(1)</script>
<script language="JavaScript1.5">alert(1)</script>
<script language="JavaScript1.6">alert(1)</script>
<script language="JavaScript1.7">alert(1)</script>
<script charset="utf-8"></script> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/script-type/output.min.html | HTML | <!doctype html><script defer>console.log()</script><script>console.log(),console.log()</script><script type=module>console.log(),console.log()</script><script>window.jQuery||document.write('<script src="jquery.js"><\/script>')</script><script type=text/html>
<div>
test
</div>
<!-- aa -->\n
</script><script type="">alert(1)</script><script type=modules>alert(1)</script><script>alert(1),alert(1)</script><script type=module src=app.mjs></script><script nomodule defer src=classic-app-bundle.js></script><script>alert(1)</script><script type=text/vbscript>MsgBox("foo bar")</script><script type="">MsgBox("foo bar")</script><script type=;;;;;>MsgBox("foo bar")</script><script>alert(1),alert(1),alert(1),alert(1),alert(1),alert(1),alert(1)</script> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/sort-attributes-disabled/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link href="foo">
<link rel="bar" href="baz">
<link type="text/css" href="app.css" rel="stylesheet" async>
<script type="text/html" async></script>
</head>
<body>
<div b="2" a="1" c="3" foo bar="baz">test</div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/sort-attributes-disabled/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link href=foo><link rel=bar href=baz><link href=app.css rel=stylesheet async><script type=text/html async></script><div b=2 a=1 c=3 foo bar=baz>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/sort-attributes/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<link href="foo">
<link rel="bar" href="baz">
<link type="text/css" href="app.css" rel="stylesheet" async>
<script type="text/html" async></script>
<!--[if lt IE 9]><script b="a" type="module"></script><![endif]-->
</head>
<body>
<div b="2" a="1" c="3" foo bar="baz">test</div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/sort-attributes/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link href=foo><link href=baz rel=bar><link href=app.css rel=stylesheet async><script type=text/html async></script><!--[if lt IE 9]><script type=module b=a></script><![endif]--><div foo c=3 bar=baz b=2 a=1>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/space-between/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<p title="bar">foo</p>
<p
title
=
"bar"
>foo</p
>
<img src="test"/>
<img src="test"
/>
<img
src="test"
>
<p title = "bar">foo</p>
<p title = "bar">foo</p>
<p title = 'bar'>foo</p>
<p title = bar>foo</p>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/space-between/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><p title=bar>foo</p>
<p title=bar>foo</p>
<img src=test>
<img src=test>
<img src=test>
<p title=bar>foo</p>
<p title=bar>foo</p>
<p title=bar>foo</p>
<p title=bar>foo | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/srcdoc/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<iframe srcdoc="<p>hello<!-- comment --> </p>"></iframe>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/srcdoc/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><iframe srcdoc="<p>hello"></iframe> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/srcset/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<img srcset="elva-fairy-480w.jpg 480w,
elva-fairy-800w.jpg 800w"
sizes="(max-width: 600px) 480px,
800px"
src="elva-fairy-800w.jpg"
alt="Elva dressed as a fairy">
<img srcset="elva-fairy-320w.jpg,
elva-fairy-480w.jpg 1.5x,
elva-fairy-640w.jpg 2x"
src="elva-fairy-640w.jpg"
alt="Elva dressed as a fairy">
<img src="favicon72.png"
alt="MDN logo"
srcset=" favicon144.png 2x ">
<img srcset="/img/new-york-sm.jpg 120w,
/img/new-york-md.jpg 200w,
/img/new-york-lg.jpg 300w"
sizes="((min-width: 10em) and (max-width: 20em)) 10em,
((min-width: 30em) and (max-width: 40em)) 30em,
(min-width: 40em) 40em">
<img style="width: 100%;"
srcset="https://webref.ru/example/image/mushroom_portrait.jpg 300w, https://webref.ru/example/image/mushroom_landscape.jpg 600w"
sizes="(max-width: 650px) 100vw, calc(150px + 150px)"
alt="">
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/srcset/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><img srcset="elva-fairy-480w.jpg 480w,elva-fairy-800w.jpg 800w" sizes="(max-width:600px) 480px,800px" src=elva-fairy-800w.jpg alt="Elva dressed as a fairy">
<img srcset="elva-fairy-320w.jpg,elva-fairy-480w.jpg 1.5x,elva-fairy-640w.jpg 2x" src=elva-fairy-640w.jpg alt="Elva dressed as a fairy">
<img src=favicon72.png alt="MDN logo" srcset="favicon144.png 2x">
<img srcset="/img/new-york-sm.jpg 120w,/img/new-york-md.jpg 200w,/img/new-york-lg.jpg 300w" sizes="((min-width:10em)and (max-width:20em)) 10em,((min-width:30em)and (max-width:40em)) 30em,(min-width:40em) 40em">
<img style=width:100% srcset="https://webref.ru/example/image/mushroom_portrait.jpg 300w,https://webref.ru/example/image/mushroom_landscape.jpg 600w" sizes="(max-width:650px) 100vw,calc(150px + 150px)" alt=""> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/style/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<style>
h1 {color:red;}
p {color:blue;}
</style>
<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
<style type="TEXT/CSS">
h1 {color:red;}
p {color:blue;}
</style>
<style type=" ">
h1 {color:red;}
p {color:blue;}
</style>
<style type=" text/css ">
h1 {color:red;}
p {color:blue;}
</style>
<style type="unknown/unknown">
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<p style=" color: red; background-color: rgb(100, 75, 200); "></p>
<p style="
color: red;
background-color: rgb(100, 75, 200);
"></p>
<p style="display : block;"></p>
<p style="display : block;"></p>
<p style="color:green">This is a paragraph.</p>
<p style="color:green;">This is a paragraph.</p>
<p style=" color : green ">This is a paragraph.</p>
<p style="--color: red; color: var(--color);">test</p>
<p style="margin: 15px; line-height: 1.5; text-align: center;">
Well, I am the slime from your video<br>
Oozin' along on your livin' room floor.</p>
<svg width="100%" height="100%" viewBox="-100 -100 200 200" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<circle cx="-50" cy="-50" r="30" style="fill:red" />
<image style=" background: red; " x="10" y="20" width="80" height="80" href="recursion.svg" />
</svg>
<p style="color: red;;;;"></p>
<p style="color: red;;;;color: blue"></p>
<p style=" "></p>
<p style="broken"></p>
<p style="broken:"></p>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/style/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><style>h1{color:red}p{color:blue}h1{color:red}p{color:blue}h1{color:red}p{color:blue}</style><style type="">
h1 {color:red;}
p {color:blue;}
</style><style>h1{color:red}p{color:blue}</style><style type=unknown/unknown>
h1 {color:red;}
p {color:blue;}
</style><p style=color:red;background-color:#644bc8></p>
<p style=color:red;background-color:#644bc8></p>
<p style=display:block></p>
<p style=display:block></p>
<p style=color:green>This is a paragraph.</p>
<p style=color:green>This is a paragraph.</p>
<p style=color:green>This is a paragraph.</p>
<p style=--color:red;color:var(--color)>test</p>
<p style=margin:15px;line-height:1.5;text-align:center>
Well, I am the slime from your video<br>
Oozin' along on your livin' room floor.</p>
<svg width=100% height=100% viewBox="-100 -100 200 200" version=1.1>
<circle cx=-50 cy=-50 r=30 style=fill:red />
<image style=background:red x=10 y=20 width=80 height=80 href=recursion.svg />
</svg>
<p style=color:red></p>
<p style=color:red;color:blue></p>
<p></p>
<p style=broken></p>
<p style=broken:> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/tabindex/input.html | HTML | <!doctype html>
<a href="#" tabindex=" 1 ">x</a><button tabindex=" 2 ">y</button> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/tabindex/output.min.html | HTML | <!doctype html><a href=# tabindex=1>x</a><button tabindex=2>y</button> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/textarea/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<textarea name="test" id="test" cols="20" rows="2"></textarea>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/textarea/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><textarea name=test id=test cols=20 rows=2></textarea> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/track/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 controls
src="/media/cc0-videos/friday.mp4">
<track default
kind="captions"
srclang="en"
src="/media/examples/friday.vtt" />
Sorry, your browser doesn't support embedded videos.
</video>
<video controls
src="/media/cc0-videos/friday.mp4">
<track default
kind="subtitles"
srclang="en"
src="/media/examples/friday.vtt" />
Sorry, your browser doesn't support embedded videos.
</video>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/track/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 controls src=/media/cc0-videos/friday.mp4>
<track default kind=captions srclang=en src=/media/examples/friday.vtt>
Sorry, your browser doesn't support embedded videos.
</video>
<video controls src=/media/cc0-videos/friday.mp4>
<track default kind=subtitles srclang=en src=/media/examples/friday.vtt>
Sorry, your browser doesn't support embedded videos.
</video> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/usemap/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>
<map name="infographic">
<area shape="rect" coords="184,6,253,27"
href="https://mozilla.org"
target="_blank" alt="Mozilla" />
<area shape="circle" coords="130,136,60"
href="https://developer.mozilla.org/"
target="_blank" alt="MDN" />
<area shape="poly" coords="130,6,253,96,223,106,130,39"
href="https://developer.mozilla.org/docs/Web/Guide/Graphics"
target="_blank" alt="Graphics" />
<area shape="poly" coords="253,96,207,241,189,217,223,103"
href="https://developer.mozilla.org/docs/Web/HTML"
target="_blank" alt="HTML" />
<area shape="poly" coords="207,241,54,241,72,217,189,217"
href="https://developer.mozilla.org/docs/Web/JavaScript"
target="_blank" alt="JavaScript" />
<area shape="poly" coords="54,241,6,97,36,107,72,217"
href="https://developer.mozilla.org/docs/Web/API"
target="_blank" alt="Web APIs" />
<area shape="poly" coords="6,97,130,6,130,39,36,107"
href="https://developer.mozilla.org/docs/Web/CSS"
target="_blank" alt="CSS" />
</map>
<img usemap=" #infographic" src="/media/examples/mdn-info.png" alt="MDN infographic" />
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/usemap/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><map name=infographic>
<area shape=rect coords=184,6,253,27 href=https://mozilla.org target=_blank alt=Mozilla>
<area shape=circle coords=130,136,60 href=https://developer.mozilla.org/ target=_blank alt=MDN>
<area shape=poly coords=130,6,253,96,223,106,130,39 href=https://developer.mozilla.org/docs/Web/Guide/Graphics target=_blank alt=Graphics>
<area shape=poly coords=253,96,207,241,189,217,223,103 href=https://developer.mozilla.org/docs/Web/HTML target=_blank alt=HTML>
<area shape=poly coords=207,241,54,241,72,217,189,217 href=https://developer.mozilla.org/docs/Web/JavaScript target=_blank alt=JavaScript>
<area shape=poly coords=54,241,6,97,36,107,72,217 href=https://developer.mozilla.org/docs/Web/API target=_blank alt="Web APIs">
<area shape=poly coords=6,97,130,6,130,39,36,107 href=https://developer.mozilla.org/docs/Web/CSS target=_blank alt=CSS>
</map>
<img usemap=#infographic src=/media/examples/mdn-info.png alt="MDN infographic"> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/video/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<video src="" poster=""></video>
<hr align="center" width="100%">
<div>test</div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/attribute/video/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><video src="" poster=""></video>
<hr>
<div>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/basic/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>
<!--[if !IE]>-->
<link href="non-ie.css" rel="stylesheet">
<!--<![endif]-->
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css">
<![endif]-->
<!--[if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif]-->
<!-- [if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif] -->
</head>
<body>
<p>This is a paragraph.</p>
<!-- Test -->
<!-- foo --><div>baz</div><!-- bar
moo -->
<script><!-- alert(1) --></script>
<script><!--
alert(1);
--></script>
<style type="text/css"><!-- p { color: red } --></style>
<script>/*<![CDATA[*/alert(8)/*]]>*/</script>
<script type="text/javascript"> /*
<![CDATA[ */
alert(10)
/* ]]> */
</script>
<!-- @preserve foo -->
<!-- @copyright foo -->
<!-- @lic foo -->
<!-- @cc_on foo -->
<!--! my custom comment -->
<!--#include virtual="/cgi-bin/counter.pl" -->
<!--! test -->
<!-- ko if: someExpressionGoesHere --><li>test</li><!-- /ko -->
<p class="accent">
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br />
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br />
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br />
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br />
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br />
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE 5-9<br />
<!-- <![endif]-->
</p>
<div>a <!-- test --> b <!-- test --> c</div>
<div>
a
<!-- test -->
b
<!-- test -->
c
</div>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/basic/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><!--[if !IE]>--><link href=non-ie.css rel=stylesheet><!--<![endif]--><!--[if IE]>
<link rel=stylesheet href=/stylesheets/no-ie.css>
<![endif]--><!--[if IE 8]>
<link href=ie8only.css rel=stylesheet>
<![endif]--><!-- [if IE 8]>
<link href=ie8only.css rel=stylesheet>
<![endif] --><p>This is a paragraph.</p>
<div>baz</div>
<script>alert(1)</script><style>p{color:red}</style><script>alert(8)</script>
<script>alert(10)</script>
<!-- @preserve foo -->
<!-- @copyright foo -->
<!-- @lic foo -->
<!-- @cc_on foo -->
<!--! my custom comment -->
<!--#include virtual="/cgi-bin/counter.pl" -->
<!--! test -->
<li>test</li>
<p class=accent>
<!--[if IE]>
According to the conditional comment this is IE<br>
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br>
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br>
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br>
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br>
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br>
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br>
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br>
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br>
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE 5-9<br>
<!-- <![endif]-->
</p>
<div>a b c</div>
<div>
a
b
c
</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/conditional-comment-disabled/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>
<!--[if !IE]>-->
<link href="non-ie.css" rel="stylesheet">
<!--<![endif]-->
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css">
<![endif]-->
<!--[if IE]><link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css"><![endif]-->
<!--[if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif]-->
<!-- [if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif] -->
</head>
<body>
<div>Test</div>
<!--[if IE]><div>
<input type="text">
</div><![endif]-->
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/conditional-comment-disabled/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><!--[if !IE]>--><link href=non-ie.css rel=stylesheet><!--<![endif]--><!--[if IE]>
<link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css">
<![endif]--><!--[if IE]><link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css"><![endif]--><!--[if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif]--><!-- [if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif] --><div>Test</div>
<!--[if IE]><div>
<input type="text">
</div><![endif]--> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/conditional-comment/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>
<!--[if !IE]>-->
<link href="non-ie.css" rel="stylesheet">
<!--<![endif]-->
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css">
<![endif]-->
<!--[if IE]><link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css"><![endif]-->
<!--[if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif]-->
<!-- [if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif] -->
</head>
<body>
<div>Test</div>
<!--[if IE]><div>
<input type="text">
</div><![endif]-->
<!--[if IE]><div>
<input type="text">
</div><![endif]-->
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/conditional-comment/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><!--[if !IE]>--><link href=non-ie.css rel=stylesheet><!--<![endif]--><!--[if IE]>
<link rel=stylesheet href=/stylesheets/no-ie.css>
<![endif]--><!--[if IE]><link rel=stylesheet href=/stylesheets/no-ie.css><![endif]--><!--[if IE 8]>
<link href=ie8only.css rel=stylesheet>
<![endif]--><!-- [if IE 8]>
<link href=ie8only.css rel=stylesheet>
<![endif] --><div>Test</div>
<!--[if IE]><div>
<input type=text>
</div><![endif]-->
<!--[if IE]><div>
<input type=text>
</div><![endif]--> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/disable-remove-comment/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>
<!--[if !IE]>-->
<link href="non-ie.css" rel="stylesheet">
<!--<![endif]-->
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css">
<![endif]-->
<!--[if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif]-->
<!-- [if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif] -->
</head>
<body>
<p>This is a paragraph.</p>
<!-- Test -->
<!-- foo --><div>baz</div><!-- bar
moo -->
<script><!-- alert(1) --></script>
<script><!--
alert(1);
--></script>
<style type="text/css"><!-- p { color: red } --></style>
<script>/*<![CDATA[*/alert(8)/*]]>*/</script>
<script type="text/javascript"> /*
<![CDATA[ */
alert(10)
/* ]]> */
</script>
<!-- @preserve foo -->
<!-- @copyright foo -->
<!-- @lic foo -->
<!-- @cc_on foo -->
<!--! my custom comment -->
<!--#include virtual="/cgi-bin/counter.pl" -->
<!--! test -->
<!-- ko if: someExpressionGoesHere --><li>test</li><!-- /ko -->
<p class="accent">
<!--[if IE]>
According to the conditional comment this is IE<br />
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br />
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br />
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br />
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br />
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br />
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br />
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br />
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE 5-9<br />
<!-- <![endif]-->
</p>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/disable-remove-comment/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><!--[if !IE]>--><link href=non-ie.css rel=stylesheet><!--<![endif]--><!--[if IE]>
<link rel=stylesheet href=/stylesheets/no-ie.css>
<![endif]--><!--[if IE 8]>
<link href=ie8only.css rel=stylesheet>
<![endif]--><!-- [if IE 8]>
<link href=ie8only.css rel=stylesheet>
<![endif] --><p>This is a paragraph.</p>
<!-- Test -->
<!-- foo --><div>baz</div><!-- bar
moo -->
<script>alert(1)</script><style>p{color:red}</style><script>alert(8)</script>
<script>alert(10)</script>
<!-- @preserve foo -->
<!-- @copyright foo -->
<!-- @lic foo -->
<!-- @cc_on foo -->
<!--! my custom comment -->
<!--#include virtual="/cgi-bin/counter.pl" -->
<!--! test -->
<!-- ko if: someExpressionGoesHere --><li>test</li><!-- /ko -->
<p class=accent>
<!--[if IE]>
According to the conditional comment this is IE<br>
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is IE 6<br>
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is IE 7<br>
<![endif]-->
<!--[if IE 8]>
According to the conditional comment this is IE 8<br>
<![endif]-->
<!--[if IE 9]>
According to the conditional comment this is IE 9<br>
<![endif]-->
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br>
<![endif]-->
<!--[if lt IE 9]>
According to the conditional comment this is IE lower than 9<br>
<![endif]-->
<!--[if lte IE 7]>
According to the conditional comment this is IE lower or equal to 7<br>
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is IE greater than 6<br>
<![endif]-->
<!--[if !IE]> -->
According to the conditional comment this is not IE 5-9<br>
<!-- <![endif]-->
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/html/input.html | HTML | <!--test--><!doctype html><!--test-->
<!--test--><html lang="en"><!--test-->
<!--test--><head><!--test-->
<!--test--><title>Document</title><!--test-->
<!--test--></head><!--test-->
<!--test--><body><!--test-->
<!--test-->
<div>test</div>
<!--test-->
<!--test--></body><!--test-->
<!--test--></html><!--test-->
<!--test--> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/html/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><div>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/preserve-comments/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>
<!--[if !IE]>-->
<link href="non-ie.css" rel="stylesheet">
<!--<![endif]-->
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="/stylesheets/no-ie.css">
<![endif]-->
<!--[if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif]-->
<!-- [if IE 8]>
<link href="ie8only.css" rel="stylesheet">
<![endif] -->
</head>
<body>
<p>This is a paragraph.</p>
<!-- Test -->
<!-- foo --><div>baz</div><!-- bar
moo -->
<script><!-- alert(1) --></script>
<script><!--
alert(1);
--></script>
<style type="text/css"><!-- p { color: red } --></style>
<script>/*<![CDATA[*/alert(8)/*]]>*/</script>
<script type="text/javascript"> /*
<![CDATA[ */
alert(10)
/* ]]> */
</script>
<!--! test -->
<!-- ko if: someExpressionGoesHere --><li>test</li><!-- /ko -->
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/preserve-comments/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><link href=non-ie.css rel=stylesheet><p>This is a paragraph.</p>
<div>baz</div>
<script>alert(1)</script><style>p{color:red}</style><script>alert(8)</script>
<script>alert(10)</script>
<!--! test -->
<!-- ko if: someExpressionGoesHere --><li>test</li><!-- /ko --> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/comment/spaces/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<!-- a --> <!-- b --> <!-- c --><link rel="stylesheet" href="test.css">
</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/comment/spaces/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><link rel=stylesheet href=test.css><div>foo<div>baz</div>bar</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/html-5-whitespace/input.html | HTML | <!DOCTYPE HTML >
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/html-5-whitespace/output.min.html | HTML | <!doctype html><title>Title of the document</title>The content of the document...... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/html-5/input.html | HTML | <!DOCTYPE HTML>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/html-5/output.min.html | HTML | <!doctype html><title>Title of the document</title>The content of the document...... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/system-force-set-html5-doctype/input.html | HTML | <!doctype html SYSTEM "about:legacy-compat">
<html lang="en">
<head>
<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/doctype/system-force-set-html5-doctype/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><div>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/system/input.html | HTML | <!doctype html SYSTEM "about:legacy-compat">
<html lang="en">
<head>
<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/doctype/system/output.min.html | HTML | <!doctype html system "about:legacy-compat"><html lang=en><title>Document</title><div>test</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/uppercase/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>
<DIV DATA-TEST="Test">TEST</DIV>
<P>blah<SPAN>blah 2<SPAN>blah 3</SPAN></SPAN></P>
<P>foo</p>
<DIV>boo</DIV>
<DIV title="moo">boo</DiV>
<DIV TITLE="blah">boo</DIV>
<DIV tItLe="blah">boo</DIV>
<DiV tItLe="blah">boo</DIV>
</BODY>
</HTML> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/doctype/uppercase/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><div data-test=Test>TEST</div>
<p>blah<span>blah 2<span>blah 3</span></span></p>
<p>foo</p>
<div>boo</div>
<div title=moo>boo</div>
<div title=blah>boo</div>
<div title=blah>boo</div>
<div title=blah>boo</div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/a/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<a href="test.html"><div>hey</div></a>
<a href>ok</a>
<a onclick></a>
<a href=" test.html "><div>hey</div></a>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/a/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><a href=test.html><div>hey</div></a>
<a href>ok</a>
<a onclick></a>
<a href=test.html><div>hey</div></a> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/blockquote/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>
<blockquote cite=" http://developer.mozilla.org ">
<p>This is a quotation taken from the Mozilla Developer Center.</p>
</blockquote>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/blockquote/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><blockquote cite=http://developer.mozilla.org>
<p>This is a quotation taken from the Mozilla Developer Center.</p>
</blockquote> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/br/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
test<br>test
test<br/>test
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/br/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title>test<br>test
test<br>test | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/custom-script-type/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<script type="text/custom-module">
console.log("test" + "test");
</script>
<script type="text/custom-script">
console.log("test" + "test");
</script>
<script type="text/custom-json">
{
"foo": "bar"
}
</script>
<script type="text/custom-css">
a {
color: rgb(255, 255, 255);
}
</script>
<script type="text/html"><!--test--><div data-foo="bar"> <span> foobar </span>
</div></script>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/custom-script-type/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><body><script type=text/custom-module>console.log("testtest")</script><script type=text/custom-script>console.log("testtest")</script><script type=text/custom-json>{"foo":"bar"}</script><script type=text/custom-css>a{color:#fff}</script><script type=text/html><div data-foo=bar> <span> foobar </span>
</div></script> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/custom/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<begriffs.pagination ng-init="perPage=20" collection="logs" url="\'/api/logs?user=-1\'" per-page="perPage" per-page-presets="[10,20,50,100]" template-url="/assets/paginate-anything.html"></begriffs.pagination>
<some-tag-1></some-tag-1><some-tag-2></some-tag-2>
[\']["]
<CUSTOM-TAG></CUSTOM-TAG><div>Hello :)</div>
<tag v-ref:vm_pv :imgs=" objpicsurl_ "></tag>
<span><phrasing-element></phrasing-element></span>
<p>Click <my-link>here</my-link> and <my-link>here</my-link></p>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/custom/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><begriffs.pagination ng-init="perPage=20" collection=logs url="\'/api/logs?user=-1\'" per-page=perPage per-page-presets=[10,20,50,100] template-url=/assets/paginate-anything.html></begriffs.pagination>
<some-tag-1></some-tag-1><some-tag-2></some-tag-2>
[\']["]
<custom-tag></custom-tag><div>Hello :)</div>
<tag v-ref:vm_pv :imgs=" objpicsurl_ "></tag>
<span><phrasing-element></phrasing-element></span>
<p>Click <my-link>here</my-link> and <my-link>here</my-link> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/del/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><del cite=" del_demo_cite.htm ">This text has been deleted</del></p>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/del/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><del cite=del_demo_cite.htm>This text has been deleted</del> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/disabled-js/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<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>
alert("test" + "test");
</script>
</head>
<body>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/disabled-js/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><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>
alert("test" + "test");
</script> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/disabled-json/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
<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>
alert("test" + "test");
</script>
</head>
<body>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/disabled-json/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><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>alert("testtest")</script> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/empty-metadata-elements/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title></title>
<base>
</head>
<body>
<script></script>
<style></style>
<link>
<meta>
<title></title>
<svg>
<script></script>
<style></style>
</svg>
<script>
</script>
<script type="module"></script>
<span>Empty modules</span>
<script type="module">
</script>
<script type="text/javascript"></script>
<span>Empty scripts</span>
<script type="text/javascript">
</script>
<span>Empty styles</span>
<style type="text/css"></style>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/empty-metadata-elements/output.min.html | HTML | <!doctype html><html lang=en><svg>
</svg>
<span>Empty modules</span>
<span>Empty scripts</span>
<span>Empty styles</span> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/form/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<form action="" method="get" class="form-example" enctype="application/x-www-form-urlencoded">
<div class="form-example">
<label for="name">Enter your name: </label>
<input type="text" name="name" id="name" required>
</div>
<div class="form-example">
<label for="email">Enter your email: </label>
<input type="email" name="email" id="email" required>
</div>
<div class="form-example">
<input type="submit" value="Subscribe!">
</div>
</form>
<form action="#" accept-charset="US-ASCII UTF-8">
First name:
<input type="text" name="fname">
<br> Last name:
<input type="text" name="lname">
<br>
<input type="submit" value="Submit">
<input name="cc-number" id="cc-number" autocomplete="off">
<input name="cc-number1" id="cc-number1" autocomplete="
organization
organization-title
">
</form>
<form action=" test.php " method="get" class="form-example" enctype="application/x-www-form-urlencoded">
<div class="form-example">
<label for="name">Enter your name: </label>
<input type="text" name="name" id="name" required>
</div>
<div class="form-example">
<label for="email">Enter your email: </label>
<input type="email" name="email" id="email" required>
</div>
<div class="form-example">
<input type="submit" value="Subscribe!">
<button type="submit" formaction=" /action_page2.php ">Submit to another page</button>
</div>
</form>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/form/output.min.html | HTML | <!doctype html><html lang=en><title>Document</title><form action="" method=get class=form-example enctype=application/x-www-form-urlencoded>
<div class=form-example>
<label for=name>Enter your name: </label>
<input type=text name=name id=name required>
</div>
<div class=form-example>
<label for=email>Enter your email: </label>
<input type=email name=email id=email required>
</div>
<div class=form-example>
<input type=submit value=Subscribe!>
</div>
</form>
<form action=# accept-charset="US-ASCII UTF-8">
First name:
<input type=text name=fname>
<br> Last name:
<input type=text name=lname>
<br>
<input type=submit value=Submit>
<input name=cc-number id=cc-number autocomplete=off>
<input name=cc-number1 id=cc-number1 autocomplete="organization organization-title">
</form>
<form action=test.php method=get class=form-example enctype=application/x-www-form-urlencoded>
<div class=form-example>
<label for=name>Enter your name: </label>
<input type=text name=name id=name required>
</div>
<div class=form-example>
<label for=email>Enter your email: </label>
<input type=email name=email id=email required>
</div>
<div class=form-example>
<input type=submit value=Subscribe!>
<button type=submit formaction=/action_page2.php>Submit to another page</button>
</div>
</form> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/iframe/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>
<iframe sandbox=" allow-same-origin allow-scripts allow-popups
allow-forms"
src="https://platform.twitter.com/widgets/tweet_button.html"
style="border: 0; width:130px; height:20px;"></iframe>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/iframe/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><iframe sandbox="allow-forms allow-popups allow-same-origin allow-scripts" src=https://platform.twitter.com/widgets/tweet_button.html style=border:0;width:130px;height:20px></iframe> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/img/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>
<link href="mobile.css" rel="stylesheet" media=" screen and (max-width: 600px) ">
<style media=" all and (max-width: 500px) ">
p {
color: blue;
background-color: yellow;
}
</style>
</head>
<body>
<img srcset="elva-fairy-480w.jpg 480w,
elva-fairy-800w.jpg 800w"
sizes="(max-width: 600px) 480px,
800px"
src="elva-fairy-800w.jpg"
alt="Elva dressed as a fairy">
<img srcset="elva-fairy-320w.jpg,
elva-fairy-480w.jpg 1.5x,
elva-fairy-640w.jpg 2x"
src="elva-fairy-640w.jpg"
alt="Elva dressed as a fairy">
<picture>
<source media="(max-width: 799px)" srcset="elva-480w-close-portrait.jpg">
<source media="(min-width: 800px)" srcset="elva-800w.jpg">
<img src="elva-800w.jpg" alt="Chris standing up holding his daughter Elva">
</picture>
<picture>
<source media=" (min-width: 1200px) " srcset=" elva-480w-close-portrait.jpg ">
<img src="mdn-logo-narrow.png" alt="MDN">
</picture>
<svg width="500" height="250">
<defs>
<clipPath id="circleView">
<circle cx="250" cy="125" r="125" fill="#FFFFFF" />
</clipPath>
</defs>
<image
width="500"
height="250"
srcset=" any value "
xlink:href="https://www.amrita.edu/sites/default/files/news-images/new/news-events/images/l-nov/grass.jpg"
clip-path="url(#circleView)"
/>
</svg>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/img/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><link href=mobile.css rel=stylesheet media="screen and (max-width:600px)"><style media="all and (max-width:500px)">p{color:blue;background-color:yellow}</style><img srcset="elva-fairy-480w.jpg 480w,elva-fairy-800w.jpg 800w" sizes="(max-width:600px) 480px,800px" src=elva-fairy-800w.jpg alt="Elva dressed as a fairy">
<img srcset="elva-fairy-320w.jpg,elva-fairy-480w.jpg 1.5x,elva-fairy-640w.jpg 2x" src=elva-fairy-640w.jpg alt="Elva dressed as a fairy">
<picture>
<source media=(max-width:799px) srcset=elva-480w-close-portrait.jpg>
<source media=(min-width:800px) srcset=elva-800w.jpg>
<img src=elva-800w.jpg alt="Chris standing up holding his daughter Elva">
</picture>
<picture>
<source media=(min-width:1200px) srcset=elva-480w-close-portrait.jpg>
<img src=mdn-logo-narrow.png alt=MDN>
</picture>
<svg width=500 height=250>
<defs>
<clipPath id=circleView>
<circle cx=250 cy=125 r=125 fill=#FFFFFF />
</clipPath>
</defs>
<image width=500 height=250 srcset=" any value " xlink:href=https://www.amrita.edu/sites/default/files/news-images/new/news-events/images/l-nov/grass.jpg clip-path=url(#circleView) />
</svg> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_html_minifier/tests/fixture/element/math/input.html | HTML | <!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<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>
</body>
</html> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.