<!doctype HTML> | |
<script src="resources/selection.js"></script> | |
<script> | |
// Selects two lines and expects a newline to be represented, but clipped by the containing div. | |
function run() { | |
selectNode(container); | |
}; | |
window.onload = run; | |
</script> | |
<div id="container"> | |
<div> | |
<div style="overflow:hidden; display: inline-block">test1</div> | |
</div> | |
test2 | |
</div> |