gecko-dev/layout/base/crashtests/1442506.html
Emilio Cobos Álvarez 549e302e25 Bug 1442506: Adjust assertion to allow empty appends. r=xidorn
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
2018-03-02 12:26:27 +01:00

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">