mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
549e302e25
Deletion at the end of a text-node ends up translated to an empty append. It's harmless though. Reviewers: xidorn Bug #: 1442506 Differential Revision: https://phabricator.services.mozilla.com/D667 MozReview-Commit-ID: DqheOYVWx8o
11 lines
245 B
HTML
11 lines
245 B
HTML
<script>
|
|
function go() {
|
|
var b = window.getSelection();
|
|
var c = document.getSelection();
|
|
b.setBaseAndExtent(document.getElementById("a"), 0, document.body.firstChild, 1);
|
|
c.deleteFromDocument();
|
|
}
|
|
</script>
|
|
<body onload=go()>
|
|
<p id="a">
|