Source/WebCore: Add UserAgentShadowDOM to FormControlElement just before adding Autho...
[WebKit-https.git] / LayoutTests / fast / dom / shadow / input-with-validation.html
1 <!DOCTYPE html>
2 <script src="resources/polyfill.js"></script>
3
4 <p>Validation should be shown if Shadow DOM has a shadow element.</p>
5 <form id='form' action="input-with-validation.html">
6 <input id=password type=password required maxlength=20 title="Needs at least 8 letters.&#x0a;Should not be identical with the current password.">
7 <input type=submit id=submit>
8 </form>
9
10 <script>
11 var input = document.getElementById('password');
12 var shadowRoot = new WebKitShadowRoot(input);
13 shadowRoot.innerHTML = "<shadow></shadow>";
14
15 document.getElementById('submit').click();
16 if (window.testRunner) {
17     testRunner.waitUntilDone();
18     setTimeout(function() {
19         testRunner.notifyDone();
20     }, 10);
21 }
22 </script>
23