ShadowRoot with leading or trailing white space cause a crash
[WebKit-https.git] / LayoutTests / fast / shadow-dom / shadow-root-with-child-whitespace-text-crash.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>
5 This tests creating a shadow root with leading and trailing white spaces.
6 WebKit should not crash. You should see PASS below.
7 </p>
8 <div id="host">PASS</div>
9 <script>
10 if (window.testRunner)
11     testRunner.dumpAsText();
12
13 var host = document.getElementById('host');
14 host.attachShadow({mode: 'closed'}).innerHTML = ' <slot></slot> ';
15 </script>
16 </body>
17 </html>