tor-browser

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

the-translate-attribute-010.html (823B)


      1 <!DOCTYPE html>
      2 <html  lang="en" >
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>translate inherits no</title>
      6 <link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
      7 <link rel='help' href='https://html.spec.whatwg.org/multipage/#the-translate-attribute'>
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <style type='text/css'>
     11 </style>
     12 </head>
     13 <body>
     14 
     15 
     16 
     17 <div class="test"><div id="box" translate="no">&nbsp; <span id="spantest">&nbsp;</span></div></div>
     18 
     19 
     20 <script>
     21 test(function() {
     22 assert_false(document.getElementById('spantest').translate);
     23 }, "If the translate attribute is set to no, javascript will detect the translation mode of elements inside that element with no translate flag as no-translate.");
     24 </script>
     25 
     26 <div id='log'></div>
     27 
     28 </body>
     29 </html>