[The method inserts `<br>` element if there is no `<br>` element around the splitting point](https://searchfox.org/mozilla-central/rev/5760e123611d5fd84a42ca764ded5d41907b6e42/editor/libeditor/HTMLEditSubActionHandler.cpp#8263,8378-8379,8412-8413,8487-8488,8524-8525). Then, [the `<br>` element is passed to `SplitParagraphWithTransaction`](https://searchfox.org/mozilla-central/rev/5760e123611d5fd84a42ca764ded5d41907b6e42/editor/libeditor/HTMLEditSubActionHandler.cpp#8545-8546). Finally, [it's removed when it's finally invisible](https://searchfox.org/mozilla-central/rev/5760e123611d5fd84a42ca764ded5d41907b6e42/editor/libeditor/HTMLEditSubActionHandler.cpp#8607-8611).
Bug 1899083 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
[The method inserts `<br>` element if there is no `<br>` element around the splitting point](https://searchfox.org/mozilla-central/rev/5760e123611d5fd84a42ca764ded5d41907b6e42/editor/libeditor/HTMLEditSubActionHandler.cpp#8263,8378-8379,8412-8413,8487-8488,8524-8525). Then, [the `<br>` element is passed to `SplitParagraphWithTransaction`](https://searchfox.org/mozilla-central/rev/5760e123611d5fd84a42ca764ded5d41907b6e42/editor/libeditor/HTMLEditSubActionHandler.cpp#8545-8546). Finally, [it's removed when it's finally visible](https://searchfox.org/mozilla-central/rev/5760e123611d5fd84a42ca764ded5d41907b6e42/editor/libeditor/HTMLEditSubActionHandler.cpp#8607-8611).