Skip to content

contenteditable #188

Closed
Closed

Description

@jgraham

Description

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.

Specification

No response

Tests

https://github.com/web-platform-tests/wpt/blob/master/editing/other/insertparagraph-in-inline-editing-host.tentative.html

Activity

  1. added this to the milestone on Oct 5, 2022
  2. moved this to Proposed in Interop 2023on Oct 7, 2022
  3. removed this from the milestone on Oct 7, 2022
  4. foolip commented on Oct 17, 2022

    @foolip
    Member

    contenteditable was mentioned by WordPress developer @youknowriad in https://make.wordpress.org/core/2022/10/10/seeking-proposals-for-interop-2023/#comment-43928:

    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.

    Thanks Riad for sharing!

  5. jgraham commented on Oct 19, 2022

    @jgraham
    ContributorAuthor

    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.

  6. tbondwilkinson commented on Oct 24, 2022

    @tbondwilkinson

    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."

  7. gsnedders commented on Oct 25, 2022

    @gsnedders
    Member

    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?

  8. jgraham commented on Oct 25, 2022

    @jgraham
    ContributorAuthor

    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.

  9. foolip commented on Nov 11, 2022

    @foolip
    Member

    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.)

  10. jensimmons commented on Nov 15, 2022

    @jensimmons
    Contributor

    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?

  11. jgraham commented on Nov 15, 2022

    @jgraham
    ContributorAuthor

    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.

  12. added
    accepted
    on Feb 1, 2023
  13. nairnandu commented on Feb 1, 2023

    @nairnandu
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedfocus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions