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

Side by Side Diff: LayoutTests/editing/execCommand/format-block-with-uneditable-crash-2.html

Issue 314923003: Make SVG elements not to consider editable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html>
2 <head> 3 <head>
3 <script> 4 <script>
4 if (window.testRunner) 5 if (window.testRunner)
5 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
6
7 onload = function() { 7 onload = function() {
8 getSelection().collapse(document.body, 0);
9 document.body.parentNode.removeChild(document.body);
10 document.designMode = 'on'; 8 document.designMode = 'on';
11 document.execCommand("InsertText", false, '\t'); 9 document.execCommand('SelectAll');
10 document.execCommand('FormatBlock', false, '<pre>');
12 document.documentElement.textContent = 'PASS if Blink doesn\'t crash.'; 11 document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
13 } 12 };
14 </script> 13 </script>
15 </head> 14 </head>
16 <body> 15 <body>
16 ab<embed contenteditable="false"><svg>xyz</svg></embed>
17 </body> 17 </body>
18 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698