Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Issue 348283 crash test case</title> | |
| 5 </head> | |
| 6 <!-- This is a minified version of the clusterfuzz test case at https://code.goo gle.com/p/chromium/issues/detail?id=348283 --> | |
| 7 <body contenteditable="true"> | |
| 8 <script> | |
| 9 window.onload = function () { | |
| 10 var table = document.getElementById("table"); | |
| 11 table.insertAdjacentHTML('afterbegin', "<svg/><div><div id=\"div\">text</div >"); | |
|
Yuta Kitamura
2014/03/04 06:36:18
nit: Don't use both '' and "" for string literals
yoichio
2014/03/04 07:05:56
Done.
| |
| 12 | |
| 13 var div = document.getElementById("div"); | |
| 14 var selection = window.getSelection(); | |
| 15 selection.collapse(div.firstChild, 0); | |
| 16 document.execCommand('InsertImage', false, 'about:blank'); | |
| 17 window.parent.postMessage('FINISH', '*'); | |
| 18 }; | |
| 19 </script> | |
| 20 <style> | |
|
Yuta Kitamura
2014/03/04 06:36:18
nit: <style> usually appears within <head>.
yoichio
2014/03/04 07:05:56
Done.
| |
| 21 table { | |
| 22 visibility: collapse; | |
| 23 } | |
| 24 | |
| 25 *:only-child { | |
| 26 visibility: visible; | |
| 27 } | |
| 28 </style> | |
| 29 <table id="table" /> | |
|
Yuta Kitamura
2014/03/04 06:36:18
nit: "<xxx />"-style tag should probably only be u
yoichio
2014/03/04 07:05:56
Done.
| |
| 30 <div /> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |