3 <p>This tests removing underline which is applied outside of editable root. We shouldn't be removing underline.
</p>
5 <div style=
"text-decoration: underline;" contenteditable=
"false"><div id=
"test" contenteditable=
"true">text
</div></div>
9 <li>Before:
<span id=
"c1"></span></li>
10 <li>After:
<span id=
"c2"></span></li>
13 <script type=
"text/javascript">
15 if (window
.testRunner
)
16 testRunner
.dumpAsText();
18 var e
= document
.getElementById('e');
19 document
.getElementById('c1').appendChild(document
.createTextNode(e
.innerHTML
));
21 var s
= window
.getSelection();
22 var r
= document
.createRange();
23 r
.setStart(document
.getElementById('test'),0);
24 r
.setEnd(document
.getElementById('test'),1);
27 document
.execCommand("underline", false, null);
29 document
.getElementById('c2').appendChild(document
.createTextNode(e
.innerHTML
));