| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/polyfill.js"></script> | |
| 3 | 2 |
| 4 <p>When the AuthorShadowDOM has only a shadow element, this should be rendered l
ike no Shadow DOM is added.</p> | 3 <p>When the AuthorShadowDOM has only a shadow element, this should be rendered l
ike no Shadow DOM is added.</p> |
| 5 <form> | 4 <form> |
| 6 <fieldset id="host"> | 5 <fieldset id="host"> |
| 7 <legend>legend</legend> | 6 <legend>legend</legend> |
| 8 <input type="text"></input> | 7 <input type="text"></input> |
| 9 </fieldset> | 8 </fieldset> |
| 10 <input id="submit" type="submit" value="Submit"> | 9 <input id="submit" type="submit" value="Submit"> |
| 11 </form> | 10 </form> |
| 12 | 11 |
| 13 <script> | 12 <script> |
| 14 if (window.internals) | 13 if (window.internals) |
| 15 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); | 14 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); |
| 16 | 15 |
| 17 var host = document.getElementById('host'); | 16 var host = document.getElementById('host'); |
| 18 var shadowRoot = host.webkitCreateShadowRoot(); | 17 var shadowRoot = host.webkitCreateShadowRoot(); |
| 19 shadowRoot.innerHTML = "<shadow></shadow>" | 18 shadowRoot.innerHTML = "<shadow></shadow>" |
| 20 </script> | 19 </script> |
| OLD | NEW |