https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 12eb4fd7c116971bbd7f2514eadcd2453787cb62 authored by Robin Berjon on 04 April 2013, 10:20:29 UTC
submision for level 2 from Opera
Tip revision: 12eb4fd
option-text-backslash.html
<!doctype html>
<meta charset=EUC-JP>
<title>Test for the backslash sign in option.text</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<select id=test><option>\</option></select>
<script>
test(function() {
  var select = document.getElementById("test");
  var option = select.firstChild;
  assert_equals(option.text, "\\");
  assert_equals(option.textContent, "\\");
});
</script>
back to top