summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1227498.html
blob: 3ccc263fd5b2f0772ab3548b9cf26eafd6365cf6 (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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>

function boom()
{
    addScopedSheet("#x { }");
}

function addScopedSheet(text)
{
    var sheet = document.createElementNS("http://www.w3.org/1999/xhtml", "style");
    sheet.appendChild(document.createTextNode(text));
    sheet.scoped = true;
    document.documentElement.appendChild(sheet);
}

</script>
</head>

<body onload="boom();">
  <embed type="application/x-missing-plugin"></embed>
</body>
</html>