summaryrefslogtreecommitdiffstats
path: root/vendor/ezyang/htmlpurifier/smoketests/innerHTML.html
blob: 0b840f182a6e7fea38607f2e89696faecf223c44 (plain)
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
<html>
<head>
    <title>innerHTML smoketest</title>
</head>
<body>
<!--

What we're going to do is use JavaScript to calculate
fixpoints of innerHTML parse and reparsing.  We start with
an input value, encoded in a JavaScript string.

x.innerHTML = input

We then snapshot the DOM state of x, and then perform the
iteration:

intermediate = x.innerHTML
x.innerHTML = intermediate

What inputs are we going to test?

We will generate using the following alphabet:

    a01~!@#$%^&*()_+`-=[]\{}|;':",./<>? (and <space>)



-->
<textarea id="out" style="width:100%;height:100%;"></textarea>
<div id="testContainer" style="display:none"></div>
<script src="innerHTML.js" type="text/javascript"></script>
</body>
</html>