[w3c/editing] Standardize execCommand("insertParagraph") in inline editing host (#175)

Test case: https://jsfiddle.net/d_toybox/7w0m6722/11/

I think that `"insertParagraph"` command (including Enter key press) in an inline editing host such as `<span contenteditable>foo bar</span>` should cause inserting `<br>` element.

In the testcases, Chrome and Safari just inserted `<br>` element for Editor 1 and Editor 2. I guess, Editor 3 case is just their unexpected bug.

Edge doesn't work well in any cases. It inserts `<p>` or `<div>` into `<span>` element.

Firefox will insert `<br>` element in these cases at 60 or 61 (note that starting Firefox 60, default paragraph separator becomes `<div>`.  59 and earlier used `<br>` and we have a bug in 60. See https://bugzilla.mozilla.org/show_bug.cgi?id=1435123)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/175

Received on Thursday, 29 March 2018 11:56:47 UTC