testing/web-platform/tests/html/dom/documents/dom-tree-accessors/nameditem-03.html
author James Teh <jteh@mozilla.com>
Tue, 04 Oct 2022 06:13:52 +0000
changeset 636821 8454bb0c09fe9d0072a2c817edc9f283cd4d7a03
parent 382605 3a93e822c501a73ca645c0361332560056fa04de
permissions -rw-r--r--
Bug 1790317 part 2: Change instances of UniqueID in LocalAccessible code to use ID. r=eeejay This doesn't update usage elsewhere in the code base, but it should be enough to ensure that this doesn't break anything. We can gradually update other cases in future. Differential Revision: https://phabricator.services.mozilla.com/D157082

<!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>