tor-browser

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

test_meta_attributes_reflection.html (984B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test for HTMLMetaElement attributes reflection</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <script type="application/javascript" src="reflect.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8 </head>
      9 <body>
     10 <p id="display"></p>
     11 <div id="content" style="display: none">
     12 </div>
     13 <pre id="test">
     14 <script type="application/javascript">
     15 
     16 /** Test for HTMLMetaElement attributes reflection */
     17 
     18 // .name (String)
     19 reflectString({
     20  element: document.createElement("meta"),
     21  attribute: "name",
     22 })
     23 
     24 // .httpEquiv (String)
     25 reflectString({
     26  element: document.createElement("meta"),
     27  attribute: { content: "http-equiv", idl: "httpEquiv" },
     28 })
     29 
     30 // .content (String)
     31 reflectString({
     32  element: document.createElement("meta"),
     33  attribute: "content",
     34 })
     35 
     36 // .scheme (String)
     37 reflectString({
     38  element: document.createElement("meta"),
     39  attribute: "scheme",
     40 })
     41 
     42 </script>
     43 </pre>
     44 </body>
     45 </html>