Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / 5017613-2.html
blobec323a3f5049dc84bcd5b68cfc5c825936f33bac
1 <p>This tests to make sure that plaintext-only regions aren't styled if they aren't fully selected. Only <b>foo</b> should be bold below.</p>
2 <div id="div" contenteditable="true"><div id="start">foo</div><table border="1" contenteditable="false"><tr><td>non-editable</td><td contenteditable="plaintext-only"><span id="end">plaintext</span>-only</td></tr></table></div>
4 <script>
5 var start = document.getElementById("start");
6 var end = document.getElementById("end");
7 var selection = window.getSelection();
8 selection.setBaseAndExtent(start, 0, end, end.childNodes.length);
9 document.execCommand("Bold");
10 </script>