Revision 83f41fa104eaf113509fffb10504b9afcba5b7e8 authored by Simon Pieters on 18 August 2016, 21:50:33 UTC, committed by Simon Pieters on 18 August 2016, 21:50:33 UTC
Ref. https://github.com/whatwg/html/issues/1679
1 parent 41ac1ae
Raw File
evaluator-constructor.html
<!doctype html>
<meta charset=utf-8>
<title>XPathEvaluator constructor</title>
<link rel=help href="http://wiki.whatwg.org/wiki/DOM_XPath">
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function() {
  var x = new XPathEvaluator();
  assert_true(x instanceof XPathEvaluator);
}, "Constructor with 'new'");
test(function() {
  var x = XPathEvaluator();
  assert_true(x instanceof XPathEvaluator);
}, "Constructor without 'new'");
</script>
back to top