Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 4786404-2.html
blobcd918367296dd8c2cb1d87b7f8455ee46e85c393
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="container"><div id="div" contenteditable="true"><u>foo</u> bar baz</div></div>
6 <script>
7 var div = document.getElementById("div");
8 div.focus();
10 document.execCommand("SelectAll");
11 document.execCommand("RemoveFormat");
13 Markup.description('This tests for a bug where performing the Remove Format operation on a selection that started in underlined content would underline everything operated on. "foo bar baz" should not have underline.');
14 Markup.dump('container');
16 </script>
17 </body>
18 </html>