blob: 209686680e91472bf064f7b37972c54f47bc8a15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="help" href="https://html.spec.whatwg.org/#attr-contenteditable">
<link rel="help" href="https://html.spec.whatwg.org/#enumerated-attribute">
<meta name="assert" content="@contenteditable values are ASCII case-insensitive">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div contenteditable="false"></div>
<div contenteditable="FaLsE"></div>
<div contenteditable="falſe"></div>
<div></div>
<script>
const div = document.querySelectorAll("div");
test(() => {
assert_equals(div[0].contentEditable, "false", "lowercase valid");
assert_equals(div[1].contentEditable, "false", "mixed case valid");
assert_equals(div[2].contentEditable, "inherit", "non-ASCII invalid");
assert_throws_dom("SyntaxError", () => {
div[3].contentEditable = "falſe";
}, "non-ASCII rejected by IDL");
}, "keyword false");
</script>
|