grouping-pre.html (908B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>the pre element</title> 6 <link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com"> 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-pre-element"> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 </head> 11 <body> 12 <h1>Description</h1> 13 <p>This test validates the pre element.</p> 14 15 <div id="log"></div> 16 17 <script> 18 "use strict"; 19 20 // check that prototype matches spec's DOM interface 21 test(function () { 22 var testElement = document.createElement("pre"); 23 assert_equals(Object.getPrototypeOf(testElement), HTMLPreElement.prototype, "HTMLPreElement.prototype should be used for pre"); 24 }, "The prototype for pre is HTMLPreElement.prototype"); 25 26 </script> 27 </body> 28 </html>