Open Bug 1904161 Opened 1 year ago Updated 1 month ago

Implement EditContext

Categories

(Core :: DOM: Editor, enhancement)

enhancement

Tracking

()

Size Estimate L

People

(Reporter: daniec, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [platform-feature][webcompat:risk-high])

User Story

web-feature: edit-context

Steps to reproduce:

Filing a tracking bug for the implementation of EditContext, to be referenced in spec draft changes.

See:
https://github.com/w3c/edit-context
https://w3c.github.io/edit-context/
https://developer.mozilla.org/en-US/docs/Web/API/EditContext_API

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Editor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Editor
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true

According to the discussion in the spec issues, getTargetRanges need to return reasonable content range even with EditContext. Then, we need to use the computing methods of getTargetRanges in HTMLEditor, but they depend on Selection and may update Selection temporarily. However, that may cause complicated web-compat issues. Therefore, we need to fix bug 1923795 before working on this.

Depends on: 1923795
OS: Unspecified → All
Hardware: Unspecified → All
Depends on: 1927549
Size Estimate: --- → L
User Story: (updated)
Whiteboard: [platform-feature][webcompat:risk-high]
You need to log in before you can comment on or make changes to this bug.