Skip to content

Commit

Permalink
Make AutoRangeArray check the container type
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D228624

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1930050
gecko-commit: 46fe71fb62ef569e078011b19eeff18a4a326476
gecko-reviewers: m_kato
  • Loading branch information
masayuki-nakano authored and moz-wptsync-bot committed Nov 13, 2024
1 parent 7b7e245 commit 7402d36
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions editing/crashtests/formatblock-when-root-is-editing-host.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
"use strict";

document.addEventListener("DOMContentLoaded", () => {
document.documentElement.contentEditable = "true";
document.execCommand("formatBlock", false, "h3");
}, {once: true});
</script>
</head>
<body>
text
<!-- no-final-newline -->

0 comments on commit 7402d36

Please sign in to comment.