| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <div id="sample" contenteditable> | 4 <div id="sample" contenteditable> |
| 5 <table><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></table> | 5 <table><td style="display:inline-block"><ruby><rt>a</rt></ruby></td></table> |
| 6 </div> | 6 </div> |
| 7 <div id="log"></div> | 7 <div id="log"></div> |
| 8 <script> | 8 <script> |
| 9 test(function() { | 9 test(function() { |
| 10 var selection = window.getSelection(); | 10 var selection = window.getSelection(); |
| 11 var sample = document.getElementById('sample'); | 11 var sample = document.getElementById('sample'); |
| 12 selection.collapse(sample, 2); | 12 selection.collapse(sample, 2); |
| 13 selection.extend(document.querySelector('rt').firstChild, 1); | 13 selection.extend(document.querySelector('rt').firstChild, 1); |
| 14 document.execCommand('InsertParagraph'); | 14 document.execCommand('InsertParagraph'); |
| 15 assert_equals(sample.innerHTML.replace(/\n/g, ''), '<table><tbody><tr><td st
yle="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><font size="1"><
br></font></tr></tbody></table>'); | 15 assert_equals(sample.innerHTML.replace(/\n/g, ''), '<table><tbody><tr><td st
yle="display:inline-block"><ruby><rt>a</rt></ruby></td></tr><tr><font size="1"><
span style="line-height: 12px;"><br></span></font></tr></tbody></table>'); |
| 16 }); | 16 }); |
| 17 </script> | 17 </script> |
| OLD | NEW |