Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/text-level-semantics/historical.html - WPT Dashboard Interop Dashboard
<!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>
t('hreflang', 'area');
t('type', 'area');
// renamed to dateTime in https://github.com/whatwg/html/commit/8b6732237c7021cd61e3c3463146234ca8ce5bad
t('datetime', 'time');
t('media', ['a', 'area']);
</script>