diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-option-element/option-text-backslash.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-option-element/option-text-backslash.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-option-element/option-text-backslash.html b/testing/web-platform/tests/html/semantics/forms/the-option-element/option-text-backslash.html new file mode 100644 index 000000000..34bd0d368 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-option-element/option-text-backslash.html @@ -0,0 +1,15 @@ +<!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> |