| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <body> | |
| 3 <script src="../../../resources/testharness.js"></script> | |
| 4 <script src="../../../resources/testharnessreport.js"></script> | |
| 5 <div id="log"></div> | |
| 6 <script> | |
| 7 test(function() { | |
| 8 var host = document.createElement('div'); | |
| 9 var root = host.attachShadow({mode: 'open'}); | |
| 10 root.innerHTML = '<form id="f1"><input name="n"><select name="n"></select></
form>'; | |
| 11 assert_equals(root.firstChild.elements.n.length, 2); | |
| 12 assert_equals(root.firstChild.n.length, 2); | |
| 13 | |
| 14 document.body.appendChild(host); | |
| 15 assert_equals(root.firstChild.elements.n.length, 2); | |
| 16 assert_equals(root.firstChild.n.length, 2); | |
| 17 }, 'RadioNodeList should work in Shadow DOM.'); | |
| 18 </script> | |
| OLD | NEW |