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

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

Issue 208503004: 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;
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">
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698