Move some items from contenteditable to HTML
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- html
- Domain
- documentation
Research direction
Start with the contentEditable spec draft linked as [1] and review its plaintext-only section and list of legal caret positions, then compare them with the HTML specification. Determine whether those already-implemented parts can be separated into focused PRs while the remaining contenteditable modes and EditContext discussion stay unresolved; done means agreed-upon HTML spec PRs for the suitable parts.
Written by the indexing model from the issue text.
Description
Hey,
a few years ago, we started writing a contenteditable spec draft [1] in this taskforce. This was at a time when we believed that we needed a more basic contenteditable type that would be simpler than contenteditable=true in that the browser would not deal as much with inserting and deleting content, and that would at the same time behave more predictably. The idea was that JavaScript editors could combine the beforeinput event with our more simplified contenteditable to create editors and then eventually be able to deprecate or at least top working on contenteditable=true.
We came up with at least three different alternative types of contenteditable: "events", "caret" and "typing". We moved quickly between these in a circular manner as running into particular issues and finding solutions to other problems, it quickly changed which of them was more useful. Given that we experienced several times coming back to one of these three, we predicted this would happen for a while and we put all three of them into our spec draft. I do not think that we expected that all three would be implemented in all browsers, but we simply did not yet know on which one we would land in the end.
We then moved away from working on the spec draft temporarily while we focused on Input Events. However, we did add some more things to the draft over time: a list of places that it was essential that the caret can be placed in (an area that had been fully of bugs in several browsers for a longer period of time) and also we added a quick mentioning of plaintext-only.
Now the question is how we go on with this: Some of these modes could still make sense even with the new landscape in which EditContext in part replaces Input Events, level 2. For example, JavaScript editors have asked for a way to let the browser keep handling selection changes (caret movements) and this could possibly be done by combining EditContext with a variant of contenteditable=caret or so. The discussion on this will likely take a while, so a final decision on which new contenteditable mode makes sense may still be a bit into the future.
However, there are bits in the draft that have implementations already - namely plaintext-only and the list of legal caret positions. The question is whether we should make PRs toward the HTML spec out of those parts already now while we continue to work on the rest of the document.
- Dominant language
- HTML
- Stars
- 202
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from w3c/editing
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
awaits feedback from Safari
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
bug-reports-filed
Difficulty 5/5 Over a week Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bancolombia/sentinel#22 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
redhat-developer/rhdh-plugins#4887 · 2 comments ·