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; |
7 onload = function() { | 8 onload = function() { |
8 var myShadowRoot = document.getElementById('sample').createShadowRoot(); | 9 var myShadowRoot = document.getElementById('sample').createShadowRoot(); |
9 var myShadowElement = document.createElement('defs'); | 10 var myShadowElement = document.createElement('defs'); |
10 myShadowElement.setAttribute('contenteditable', 'true'); | 11 myShadowElement.setAttribute('contenteditable', 'true'); |
11 myShadowRoot.appendChild(myShadowElement); | 12 myShadowRoot.appendChild(myShadowElement); |
12 myShadowElement.focus(); | 13 myShadowElement.focus(); |
13 document.body.innerHTML = 'PASS if this was not crashed.'; | 14 document.body.innerHTML = 'PASS if this was not crashed.'; |
14 } | 15 } |
15 </script> | 16 </script> |
16 <input id="sample"> | 17 <input id="sample"> |
OLD | NEW |