inspector-document-methods-override.html 576 B

1234567891011121314
  1. <p>This page test that using the Web Inspector's search field on a page that
  2. overrides <tt>Document.evaluate</tt> or <tt>Document.querySelectorAll</tt>
  3. still works.<p>
  4. <p>To test, right-click on this page and select &ldquo;Inspect Element&rdquo;,
  5. then type &ldquo;p&rdquo; in the search field (without the quotes). If the
  6. search results list appears, then you have passed the test. If one or more
  7. alert dialogs appear, you have failed the test.</p>
  8. <script>
  9. function fail() { alert('FAIL') }
  10. document.querySelectorAll = fail;
  11. document.evaluate = fail;
  12. </script>