historical.html (1023B)
1 <!doctype html> 2 <title>Historical text-level element features should not be supported</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id=log></div> 6 <script> 7 function t(property, tagNames) { 8 if (typeof tagNames === "string") { 9 tagNames = [tagNames]; 10 } 11 tagNames.forEach(function(tagName) { 12 test(function() { 13 assert_false(property in document.createElement(tagName)); 14 }, tagName + '.' + property + ' should not be supported'); 15 }); 16 } 17 18 // <area> and <link> are in other sections in the spec, but we'll test them here together with <a> 19 20 // removed in https://github.com/whatwg/html/commit/790479ab1ba143efc27d1f92cd0465627df48fb0 21 t('hreflang', 'area'); 22 t('type', 'area'); 23 24 // renamed to dateTime in https://github.com/whatwg/html/commit/8b6732237c7021cd61e3c3463146234ca8ce5bad 25 t('datetime', 'time'); 26 27 // removed in https://github.com/whatwg/html/commit/66fcb2357f205448fe2f40d7834a1e8ea2ed283b 28 t('media', ['a', 'area']); 29 </script>