testing/web-platform/tests/custom-elements/reactions/HTMLBaseElement.html
author kaixinjxq <xiuqix.jiang@intel.com>
Tue, 05 Mar 2019 12:15:07 +0000
changeset 464549 2f840f6a520912ad49da1fc461244b4edf3dfadd
parent 464215 84b7e38be0cc0c0057ac4361a19f24b0509ec63a
permissions -rw-r--r--
Bug 1513857 [wpt PR 14491] - Add CEReactions tests for HTMLBaseElement, a=testonly Automatic update from web-platform-tests Add CEReactions tests for HTMLBaseElement -- wpt-commits: ce667da7c2cf7485f9d818deb67641613b0c5ef3 wpt-pr: 14491

<!DOCTYPE html>
<head>
<title>Custom Elements: CEReactions on HTMLBaseElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="href, target of HTMLBaseElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-base-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
</head>
<script>

function getParentElement() {
  return document.head;
}

testReflectAttributeWithParentNode('href', 'href', '/', 'http://example.com/', 'href on HTMLBaseElement', 'base', getParentElement, HTMLBaseElement);
testReflectAttributeWithParentNode('target', 'target', '_blank', '_self', 'target on HTMLBaseElement', 'base', getParentElement, HTMLBaseElement);

</script>