option-text-backslash.html (463B)
1 <!doctype html> 2 <meta charset=EUC-JP> 3 <title>Test for the backslash sign in option.text</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <div id=log></div> 7 <select id=test><option>\</option></select> 8 <script> 9 test(function() { 10 var select = document.getElementById("test"); 11 var option = select.firstChild; 12 assert_equals(option.text, "\\"); 13 assert_equals(option.textContent, "\\"); 14 }); 15 </script>