Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: LayoutTests/fast/dom/shadow/shadowdom-for-input-spellcheck.html

Issue 212303005: Revert of Remove prefixed Shadow DOM APIs in Element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698