the-translate-attribute-009.html (728B)
1 <!DOCTYPE html> 2 <html lang="en" > 3 <head> 4 <meta charset="utf-8"/> 5 <title>translate=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"> </div></div> 18 19 20 <script> 21 test(function() { 22 assert_false(document.getElementById('box').translate); 23 }, "If the translate attribute is set to no, javascript will detect the translation mode of text as no-translate."); 24 </script> 25 26 <div id='log'></div> 27 28 </body> 29 </html>