Re: [w3c/editing] RFC: Contenteditable "indent" implementations are not aligned with popular editors (Issue #437)

Sounds great. Thanks!!

As long as Simon is conducting research.... I just discovered something weird (IMHO) about user agent implementations of outdent with respect to list items:

If you create an (un)ordered list in editors (I tried Google Docs and Microsoft 365 Word), indent nests the list item(s) and outdent reverses that, as expected. BUT at no point does outdent cause a list item to stop being a list item.

In contrast, if you load: `data:text/html,<div contenteditable="true"><ul><li>foo</li><li>bar</li><li>baz</li></ul></div><button onclick="document.execCommand('outdent', false);">outdent</button>`, click on "bar", and then click on the "outdent" button, you wind up with two unordered lists separated by "bar." 

I personally think this is another instance where making the implementations match popular editors makes sense.

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

Message ID: <w3c/editing/issues/437/1719630915@github.com>

Received on Thursday, 14 September 2023 15:02:55 UTC