Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5049671.html
blobb7347dc72ab9696917b94d4fcfde1daa9f66b36d
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="div" contenteditable="true"><a href="http://www.google.com/">This shouldn't be a link or underlined.</a></div>
6 <script>
8 Markup.description('This tests was added for a bug where Remove Format would fail to remove links that were fully selected.'
9 + ' However, because the bug 43017 requires WebKit does not remove anchor elements, RemoveFormat should NOT remove anchor elements.');
11 var div = document.getElementById("div");
12 div.focus();
13 document.execCommand("SelectAll");
15 Markup.dump(div, 'Before RemoveFormat');
17 document.execCommand("RemoveFormat");
19 Markup.dump(div, 'After RemoveFormat');
21 </script>
22 </body>
23 </html>