-
Notifications
You must be signed in to change notification settings - Fork 47
/
test.html
39 lines (35 loc) · 893 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Test</title>
</head>
<body>
<script src="https://diffhtml.org/master/diffhtml/dist/diffhtml.js"></script>
<script src="dist/linter.js"></script>
<script>
diff.use(linter({
rules: {
'attr-value-not-empty': true,
'inline-style-disabled': true,
'inline-script-disabled': true,
},
renderErrors: true,
}));
setInterval(() => {
diff.innerHTML(document.body, `
<!doctype html>
<H1>Hello world</H1>
<span ID="true"></span>
<video src="" />
<img disabled="" id="true" />
<head style="font-weight:bold">
<script><\/script>
<tittle onclick="test()"></tittle>
</head>
`);
}, 1000);
</script>
</body>
</html>