dom/events/test/bug415498-doc1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/events/test/bug415498-doc1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<script type="text/javascript">
     1.8 +function init() {
     1.9 +  // This will throw a HierarchyRequestError exception
    1.10 +  var doc = document.implementation.createDocument(null, 'DOC', null);
    1.11 +  doc.documentElement.appendChild(doc);
    1.12 +}
    1.13 +window.addEventListener("load", init, false);
    1.14 +</script>
    1.15 +</head>
    1.16 +<body>
    1.17 +  Testcase for bug 415498. This page should show an exception in Error Console on load
    1.18 +</body>

mercurial