swc/crates/swc_html_minifier/tests/fixture/element/script-group/input.html

251 lines
5.7 KiB
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>