content/events/test/bug415498-doc1.html
author David Mandelin <dmandelin@mozilla.com>
Mon, 09 Aug 2010 18:29:34 -0700
changeset 53358 688ca6c81137c6972b5a7f172394c7b4d332e93d
parent 14170 eaaf9cc4e1d1aeee5cbcb4394619f0c6983e4e3c
child 96579 bafdd54189eef35f1cb9ed4fc2cde2c5dccacaf7
permissions -rw-r--r--
[JAEGER] Bug 585801 trial fix: innerize object passed as scope chain for JS evaluation

<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
function init() {
  // This will throw a NS_ERROR_DOM_WRONG_DOCUMENT_ERR exception
  var doc = document.implementation.createDocument(null, 'DOC', null);
  doc.documentElement.appendChild(doc);
}
window.addEventListener("load", init, false);
</script>
</head>
<body>
  Testcase for bug 415498. This page should show an exception in Error Console on load
</body>