You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alignment on apsects of contentEditable that have been agreed as part of the Interop 2022 investigation.
Rationale
contenteditable interop has been a longstanding issue on the web, and causes significant difficulties for users and authors as libraries need to handle browser differences, often using complex approaches like DOM diffing. However in some cases even the few invariants assumed by libraries are broken, and so there can be user-facing breakage.
The lack of a trustworthy specification, and constraints imposed by deployed content makes it hard to fully align on contenteditable behaviour. However the interop 2022 investigation revealed some areas in which browsers could better align, and in doing so make it easier to write working editing libraries.
There’s a lot of differences and bugs with how Selection and contenteditables work. A lot of these are already “hacked” in RichText. @ellatrix would know more here.
The spec situation here is still A Mess. We're hoping that following the 2022 Investigate item we have consensus on the behaviour in the mentioned tests, and that is sufficient to score some progress in the most impactful areas of implementation consistency in 2023.
The spec situation here is still A Mess. We're hoping that following the 2022 Investigate item we have consensus on the behaviour in the mentioned tests, and that is sufficient to score some progress in the most impactful areas of implementation consistency in 2023.
Is the hope the group will waive the requirement for a standards track document here?
Is the hope the group will waive the requirement for a standards track document here?
I hope so.
I don't know that it's explicitly stated anywhere but it seems unreasonable to take the position that browsers are OK to ship a feature but aren't OK to accept proposals to improve the interoperability of that feature.
Of course there are often additional considerations to fixing up these legacy features, but that's why we had an Investigate effort in 2022 before making a focus area proposal.
Could you summarize the concrete proposal here? It's to add a set of tests to Interop 2023? Which tests? Do those tests represent the current standard? Or perhaps instead an Investigation project sense of what a standards should be in the future?
The contenteditable standard remains a mess, but I believe there was agreement in the investigation project that test represents behaviour we should converge on.
Thank you for proposing contenteditable for inclusion in Interop 2023.
We are pleased to let you know that this proposal was accepted as part of the Web Compat 2023 focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.
For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!
Activity
foolip commentedon Oct 6, 2022
Is https://w3c.github.io/contentEditable/ part of the spec for this?
foolip commentedon Oct 17, 2022
contenteditablewas mentioned by WordPress developer @youknowriad in https://make.wordpress.org/core/2022/10/10/seeking-proposals-for-interop-2023/#comment-43928:Thanks Riad for sharing!
jgraham commentedon Oct 19, 2022
The spec situation here is still A Mess. We're hoping that following the 2022 Investigate item we have consensus on the behaviour in the mentioned tests, and that is sufficient to score some progress in the most impactful areas of implementation consistency in 2023.
tbondwilkinson commentedon Oct 24, 2022
contenteditable is a P4 for Google's closure library
"This could imapct goog.editor, which (as far as I can tell) is critical infrastructure that nobody really understands."
gsnedders commentedon Oct 25, 2022
Is the hope the group will waive the requirement for a standards track document here?
jgraham commentedon Oct 25, 2022
I hope so.
I don't know that it's explicitly stated anywhere but it seems unreasonable to take the position that browsers are OK to ship a feature but aren't OK to accept proposals to improve the interoperability of that feature.
Of course there are often additional considerations to fixing up these legacy features, but that's why we had an Investigate effort in 2022 before making a focus area proposal.
foolip commentedon Nov 11, 2022
In the MDN short survey on APIs & JavaScript, "Editing (
contenteditable)" was selected by ~18% of survey takers, putting it in the middle third of options. (There is some uncertainty as with any survey data.)jensimmons commentedon Nov 15, 2022
Could you summarize the concrete proposal here? It's to add a set of tests to Interop 2023? Which tests? Do those tests represent the current standard? Or perhaps instead an Investigation project sense of what a standards should be in the future?
jgraham commentedon Nov 15, 2022
I've updated the initial comment, it's one test.
The contenteditable standard remains a mess, but I believe there was agreement in the investigation project that test represents behaviour we should converge on.
jensimmons commentedon Nov 15, 2022
Thanks @jgraham. So it's this list: https://wpt.fyi/results/editing/other?label=master&label=experimental&aligned&view=subtest&q=insertparagraph-in-inline-editing-host.tentative.html
nairnandu commentedon Feb 1, 2023
Thank you for proposing contenteditable for inclusion in Interop 2023.
We are pleased to let you know that this proposal was accepted as part of the Web Compat 2023 focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.
For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!
Posted on behalf of the Interop team.