gecko-dev/layout/style/crashtests/645951-1.html

12 строки
326 B
HTML

<!DOCTYPE HTML>
<title>Test, bug 645951</title>
<link rel=stylesheet href="645951-1.css">
<link id="two" rel=stylesheet href="645951-1.css">
<body onload="run()">
<script>
function run() {
document.getElementById("two").sheet.insertRule("p { color: green}", 1);
}
</script>
<p>Should not crash, and should be green too.</p>