swc/crates/swc_html_minifier/tests/fixture/attribute/javascript-prefix/input.html

22 lines
1.1 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<form action="/test">
<input type="text" onkeydown="javascript:myFunction()">
</form>
<div type="text" onmouseover="javascript:myFunction()">test</div>
<div type="text" onmouseover=" javascript:myFunction() ">test</div>
<div type="text" onmouseover="">test</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;">
<circle onmouseover=" javascript:alert('test') " cx="50" cy="50" r="30" style="fill:url(#gradient)" />
</svg>
<div type="text" onmouseover="javascript:myFunction()">test</div>
<a href="https://datacadamia.com" onclick="console.log(`Navigation to ${this.href}` + ` cancelled`); return false;">Click me</a>
<a href="https://datacadamia.com" onclick="javascript:console.log(`Navigation to ${this.href}` + ` cancelled`); return false;">Click me</a>
</body>
</html>