| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title></title> | 3 <title></title> |
| 4 <script src="../../../../resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="../../../../resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script> | 6 <script> |
| 7 test(function() { | 7 test(function() { |
| 8 var obj = Object.create(Element.prototype); | 8 var obj = Object.create(Element.prototype); |
| 9 assert_true(obj instanceof Element); | 9 assert_true(obj instanceof Element); |
| 10 assert_true(obj instanceof Node); | 10 assert_true(obj instanceof Node); |
| 11 assert_false(obj instanceof Attr); | 11 assert_false(obj instanceof Attr); |
| 12 }, "Manually-constructed prototype chains are correctly handled by instanceof"); | 12 }, "Manually-constructed prototype chains are correctly handled by instanceof"); |
| 13 </script> | 13 </script> |
| OLD | NEW |