blob: 991e2e6fc052a10b7c89df822eaf7d5129049fc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html>
<body>
<div>
<script>
if (parent.document.adoptNode)
parent.document.body.appendChild(parent.document.adoptNode(document.getElementsByTagName("div")[0]));
else
parent.document.body.appendChild(document.getElementsByTagName("div")[0]);
</script>
<script>
alert('should be outer: ' + document.URL.match(/parser.*/));
</script>
</div>
<script>
alert('should be inner: ' + document.URL.match(/parser.*/));
</script>
</body>
</html>
|