Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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');
t('datetime', 'time');
t('media', ['a', 'area']);
</script>