mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
bf208eff66
SplitNodeDeepWithTransaction will split nodes until better point. But this test case becomes that node is orphan into loop. So I would like to add more check whether parent is nothing. MozReview-Commit-ID: EroSV4uVBVL --HG-- extra : rebase_source : f594bdf7cd9efac7d10e6e05a8f87dadfc761295
14 lines
299 B
HTML
14 lines
299 B
HTML
<script>
|
|
function go() {
|
|
document.getElementById("label1").addEventListener("DOMNodeRemoved", () => {
|
|
document.getElementById("a1").innerText = "";
|
|
});
|
|
document.execCommand("indent", false);
|
|
}
|
|
</script>
|
|
<body onload=go()>
|
|
<li contenteditable="">
|
|
<a id="a1">
|
|
<label id="label1"></br>
|
|
<!---
|