Files
firefox/testing/web-platform/tests/html/semantics/text-level-semantics/historical.html
T
Anne van Kesteren 85adf61601 Bug 1527455 [wpt PR 15357] - HTML: noreferer was never a property of hyperlinks, a=testonly
Automatic update from web-platform-tests
HTML: noreferer was never a property of hyperlinks

This should have tested the rel attribute value, but as it hasn't been doing that and it would be quite a bit of work, let's remove this instead.

--

wpt-commits: 25c665a93231027be5941838cecb3208e360d4b1
wpt-pr: 15357
2019-02-26 12:05:32 +00:00

30 lines
1023 B
HTML

<!doctype html>
<title>Historical text-level element features should not be supported</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
function t(property, tagNames) {
if (typeof tagNames === "string") {
tagNames = [tagNames];
}
tagNames.forEach(function(tagName) {
test(function() {
assert_false(property in document.createElement(tagName));
}, tagName + '.' + property + ' should not be supported');
});
}
// <area> and <link> are in other sections in the spec, but we'll test them here together with <a>
// removed in https://github.com/whatwg/html/commit/790479ab1ba143efc27d1f92cd0465627df48fb0
t('hreflang', 'area');
t('type', 'area');
// renamed to dateTime in https://github.com/whatwg/html/commit/8b6732237c7021cd61e3c3463146234ca8ce5bad
t('datetime', 'time');
// removed in https://github.com/whatwg/html/commit/66fcb2357f205448fe2f40d7834a1e8ea2ed283b
t('media', ['a', 'area']);
</script>