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>
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");
13 document
.execCommand("SelectAll");
15 Markup
.dump(div
, 'Before RemoveFormat');
17 document
.execCommand("RemoveFormat");
19 Markup
.dump(div
, 'After RemoveFormat');