Skip to content

Commit 0028b5a

Browse files
masayuki-nakanomoz-wptsync-bot
authored andcommitted
Add the reported testcase to WPT
The assertion hit has been fixed by the part 7-7 of bug 1774704. I didn't try to change any behavior with the patch, however, it stops updating `Selection` immediately after every DOM tree change. Therefore I guess that updating `Selection` at `execCommand("justifyLeft")` may have failed, and it's now skipped after handling everything, so the DOM tree after calling it must be changed by the patch (note that we've stopped throwing from `Document.execCommand`, so failing to handle the command does not cause stopping the JS). Differential Revision: https://phabricator.services.mozilla.com/D154050 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1659716 gecko-commit: 4ea96139bf4330f52fe84f27db57d8df840523b5 gecko-reviewers: m_kato
1 parent 5dec346 commit 0028b5a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<script>
2+
document.addEventListener("DOMContentLoaded", () => {
3+
const fieldset = document.querySelector("fieldset");
4+
document.documentElement.contentEditable = true;
5+
fieldset.contentEditable = false;
6+
document.execCommand("justifyLeft");
7+
document.designMode = "on";
8+
document.execCommand("indent");
9+
document.execCommand("forwardDelete");
10+
document.execCommand("delete");
11+
});
12+
</script>
13+
<acronym readonly autofocus>
14+
<sup>
15+
<fieldset>
16+
17+
here is fieldset
18+
</fieldset>
19+
</acronym>
20+
</html>

0 commit comments

Comments
 (0)