OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Distributed under both the W3C Test Suite License [1] and the W3C | 3 Distributed under both the W3C Test Suite License [1] and the W3C |
4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 4 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
5 policies and contribution forms [3]. | 5 policies and contribution forms [3]. |
6 | 6 |
7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 7 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 8 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
9 [3] http://www.w3.org/2004/10/27-testcases | 9 [3] http://www.w3.org/2004/10/27-testcases |
10 --> | 10 --> |
11 <html> | 11 <html> |
12 <head> | 12 <head> |
13 <title>Shadow DOM Test: Inheritance of contentEditable attribute</title> | 13 <title>Shadow DOM Test: Inheritance of contentEditable attribute</title> |
14 <link rel="author" title="Moto Ishizawa" href="mailto:summerwind.jp@gmail.com"> | 14 <link rel="author" title="Moto Ishizawa" href="mailto:summerwind.jp@gmail.com"> |
15 <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#editing
"> | 15 <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#editing
"> |
16 <meta name="assert" content="User Interaction: Shadow trees must not be propagat
ed contentEditable attribute from shadow host"> | 16 <meta name="assert" content="User Interaction: Shadow trees must not be propagat
ed contentEditable attribute from shadow host"> |
17 <script src="/resources/testharness.js"></script> | 17 <script src="/resources/testharness.js"></script> |
18 <script src="/resources/testharnessreport.js"></script> | 18 <script src="/resources/testharnessreport.js"></script> |
19 <script src="../../../../html/resources/common.js"></script> | 19 <script src="../../../../html/resources/common.js"></script> |
20 <script src="../../../resources/shadow-dom-utils.js"></script> | 20 <script src="../../../resources/shadow-dom-utils.js"></script> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 d.body.contentEditable = "true"; | 56 d.body.contentEditable = "true"; |
57 | 57 |
58 var s = host.attachShadow({mode: 'open'}); | 58 var s = host.attachShadow({mode: 'open'}); |
59 | 59 |
60 assert_equals(host.contentEditable, 'inherit'); | 60 assert_equals(host.contentEditable, 'inherit'); |
61 assert_equals(s.contentEditable, undefined); | 61 assert_equals(s.contentEditable, undefined); |
62 }), 'contentEditable of shadow trees must be undefined when contentEditable attr
ibute of shadow host is "inherit"'); | 62 }), 'contentEditable of shadow trees must be undefined when contentEditable attr
ibute of shadow host is "inherit"'); |
63 </script> | 63 </script> |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
OLD | NEW |