| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../assert_selection.js"></script> |
| 5 <script> |
| 6 test(() => assert_selection( |
| 7 '<div contenteditable>foo|bar</div>', |
| 8 'insertHorizontalRule', |
| 9 '<div contenteditable>foo<hr>|bar</div>'), |
| 10 'Insert HR between foo and bar'); |
| 11 |
| 12 test(() => assert_selection( |
| 13 '<div contenteditable>foo|bar</div>', |
| 14 'insertHorizontalRule abc', |
| 15 '<div contenteditable>foo<hr id="abc">|bar</div>'), |
| 16 'Insert HR with id "abc" between foo and bar'); |
| 17 </script> |
| OLD | NEW |