w3c / w3c/editing

Edit text outside of <body>

Open
#405 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
202
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Should browsers allow using execCommand outside the <body>? If yes, then that behavior should be specced. There is a proposal on what such behavior should look like [1]. Alternatively, we could specify that execCommand should not work outside of <body>. See discussion on pro- and contra starting here [2].

[1] https://github.com/web-platform-tests/interop-2022-editing/issues/8 See "Tests inserting paragraph and delete in elements outside "

[2] https://github.com/web-platform-tests/interop-2022-editing/issues/8#issuecomment-1205729552

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the proposal and tests in Interop 2022 Editing issue 8, then read the linked discussion about behavior outside . Resolve whether execCommand should work there or be prohibited, and reflect the decided behavior in the relevant specification and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.