tor-browser

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

id-name-specialcase.html (1094B)


      1 <!DOCTYPE html>
      2 <title>HTML5: test id with none pure alpha characters </title>
      3 <link rel="author" title="justin.shen" href=mailto:cosmichut@msn.com">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="log"></div>
      7 <div style="display:none">
      8  <input id="123" value="123"></input>
      9  <input id="1test" value="1test"></input>
     10  <input id="_test" value="_test"></input>
     11  <input id="." value="."></input>
     12  <input id="中国" value="china"></input>
     13 </div>
     14 <script>
     15 test(function() {
     16  assert_equals(document.getElementById("123").value, "123");
     17 }, "id with digits only");
     18 test(function() {
     19  assert_equals(document.getElementById("1test").value, "1test");
     20 },"id start with digits");
     21 test(function() {
     22  assert_equals(document.getElementById("_test").value, "_test");
     23 },"id start with underscore");
     24 test(function() {
     25  assert_equals(document.getElementById(".").value, ".");
     26 },"id with punctuation only");
     27 test(function() {
     28  assert_equals(document.getElementById("中国").value, "china");
     29 },"id with chinese character");
     30 </script>