OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 | |
3 <p>Validation should be shown if Shadow DOM has a shadow element.</p> | |
4 <form id='form' action="input-with-validation.html"> | |
5 <input id=password type=password required maxlength=20 title="Needs at least 8 l
etters.
Should not be identical with the current password."> | |
6 <input type=submit id=submit> | |
7 </form> | |
8 | |
9 <script> | |
10 if (window.internals) | |
11 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); | |
12 | |
13 var input = document.getElementById('password'); | |
14 var shadowRoot = input.createShadowRoot(); | |
15 shadowRoot.innerHTML = "<shadow></shadow>"; | |
16 | |
17 document.getElementById('submit').click(); | |
18 if (window.testRunner) { | |
19 testRunner.waitUntilDone(); | |
20 setTimeout(function() { | |
21 testRunner.notifyDone(); | |
22 }, 10); | |
23 } | |
24 </script> | |
25 | |
OLD | NEW |