heading-obsolete-attributes-01.html (822B)
1 <!DOCTYPE html> 2 <title>HTMLHeadingElement: obsolete attribute reflecting</title> 3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> 4 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-hx-align"> 5 <link rel="help" href="https://webidl.spec.whatwg.org/#es-DOMString"> 6 <link rel="help" href="http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf#page=57"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <div id="log"></div> 10 <script> 11 test(function() { 12 var el = document.createElement("h7"); 13 el.align = "left"; 14 assert_equals(el.align, "left"); 15 assert_false(el.hasAttribute("align")); 16 assert_equals(el.getAttribute("align"), null); 17 }, "IDL attributes for HTMLHeadingElement should not apply to h7.") 18 </script>