OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 if (window.internals) | 5 if (window.internals) |
6 internals.settings.setUnifiedTextCheckerEnabled(true); | 6 internals.settings.setUnifiedTextCheckerEnabled(true); |
7 Element.prototype.createShadowRoot = Element.prototype.webkitCreateShadowRoot ||
Element.prototype.createShadowRoot; | |
8 onload = function() { | 7 onload = function() { |
9 var myShadowRoot = document.getElementById('sample').createShadowRoot(); | 8 var myShadowRoot = document.getElementById('sample').createShadowRoot(); |
10 var myShadowElement = document.createElement('defs'); | 9 var myShadowElement = document.createElement('defs'); |
11 myShadowElement.setAttribute('contenteditable', 'true'); | 10 myShadowElement.setAttribute('contenteditable', 'true'); |
12 myShadowRoot.appendChild(myShadowElement); | 11 myShadowRoot.appendChild(myShadowElement); |
13 myShadowElement.focus(); | 12 myShadowElement.focus(); |
14 document.body.innerHTML = 'PASS if this was not crashed.'; | 13 document.body.innerHTML = 'PASS if this was not crashed.'; |
15 } | 14 } |
16 </script> | 15 </script> |
17 <input id="sample"> | 16 <input id="sample"> |
OLD | NEW |