test-006.html (852B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Shadow DOM Test: A_10_02_01_06</title> 5 <link rel="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> 6 <link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#shadow-aware-attributes"> 7 <meta name="assert" content="Extensions to Element Interface: shadowRoot of type ShadowRoot"> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="../../../../../html/resources/common.js"></script> 11 </head> 12 <body> 13 <div id="log"></div> 14 <script> 15 test(function () { 16 17 var d = newHTMLDocument(); 18 19 var host = d.createElement('div'); 20 d.body.appendChild(host); 21 22 assert_equals(host.shadowRoot, null, 'attribute shadowRoot must return null if no shadow tree is accesible'); 23 24 25 }, 'A_10_02_01_06_T01'); 26 </script> 27 </body> 28 </html>