tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

grouping-hr.html (982B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>the hr 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-hr-element">
      8    <script src="/resources/testharness.js"></script>
      9    <script src="/resources/testharnessreport.js"></script>
     10    <script>
     11        "use strict";
     12 
     13        // check that prototype matches spec's DOM interface
     14        test(function () {
     15            var testElement = document.createElement("hr");
     16            assert_equals(Object.getPrototypeOf(testElement), HTMLHRElement.prototype, "HTMLHRElement.prototype should be used for hr");
     17        }, "The prototype for hr is HTMLHRElement.prototype");
     18 
     19        // Not checking: "The hr element does not affect the document's outline."
     20 
     21    </script>
     22 </head>
     23 <body>
     24    <h1>Description</h1>
     25    <p>This test validates the hr element.</p>
     26 
     27    <div id="log"></div>
     28 
     29 </body>
     30 </html>