Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tentative WPT of handling line breaks in inline editing host
Browsers shouldn't insert `<div>` and `<p>` elements into inline elements such as `<span>` even when it's `display` value creates a block format context since it's invalid structure from point of view of HTML. However, some browsers do it. Therefore, this test should make them fail. The reason why this patch touches `editor-test-utils.js` is, it scans the following `<script>` element's text with a bug. So the change makes it does not scan outside the editing host. Differential Revision: https://phabricator.services.mozilla.com/D150991 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1777903 gecko-commit: e3fd1571e2b9e6968d5e7b8063700afc469c4186 gecko-reviewers: m_kato
- Loading branch information