diff options
Diffstat (limited to 'testing/web-platform/tests/html/dom/documents/dom-tree-accessors/nameditem-03.html')
-rw-r--r-- | testing/web-platform/tests/html/dom/documents/dom-tree-accessors/nameditem-03.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/dom/documents/dom-tree-accessors/nameditem-03.html b/testing/web-platform/tests/html/dom/documents/dom-tree-accessors/nameditem-03.html new file mode 100644 index 0000000000..be2ca173b0 --- /dev/null +++ b/testing/web-platform/tests/html/dom/documents/dom-tree-accessors/nameditem-03.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<meta charset=utf-8> +<title>Named items: applets</title> +<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> +<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-nameditem"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> +<applet name=test1></applet> +<script> +test(function() { + var applet = document.getElementsByTagName("applet")[0]; + assert_equals(applet.name, undefined); + + assert_false("test1" in document, '"test1" in document should be false'); + assert_equals(document.test1, undefined); +}, "applet elements are (mostly) gone"); +</script> |