Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1840856: Fixed linefeed/linebreak issues for contenteditable. r=m…
…asayuki,dom-core This patch is related to Bug 1840822, which fixes some issues regarding additional invisible linebreaks needed at the end of contenteditables. This patch in particular fixes the case where the user presses enter at the end of a pre-formatted contenteditable, e.g.: ``` <span contenteditable style="display:block;white-space:pre-line">[]</span> ``` Prior to this patch, only one `<br>` was added, the invisible padding linebreak was missing. With this patch applied, the behaviour should be as expected: ``` <span contenteditable style="display:block;white-space:pre-line">\n<br></span> ``` Differential Revision: https://phabricator.services.mozilla.com/D190217
- Loading branch information