<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <body onload="test()">
    <script>
      function test() {
        document.body.innerHTML = "Foobar";
      }
      document.addEventListener("DOMNodeRemoved", function() {});
    </script>
  </body>
</html>