Skip to content

[WebAPI] Add support for shadow DOM selection #33180

@dipikabh

Description

@dipikabh

Acceptance criteria

  • The listed features are documented sufficiently on MDN
  • BCD is updated
  • Interactive example and data repos are updated if appropriate
  • The content has been reviewed as needed

For folks helping with Firefox related documentation

  • Set bugs to dev-doc-complete
  • Add entry to Firefox release notes for enabled/preview features
  • Add/remove entry to Firefox experimental features page for preference/released features

Features to document

  • Selection.getComposedRanges() API - allows web authors to get selection endpoints across the shadow boundaries
  • Selection.direction API - exposes the direction of the selection
  • Specification: https://www.w3.org/TR/selection-api/
  • Preference: dom.shadowdom.selection_across_boundary.enabled
  • Enabled only in Nightly:
# Whether allowing selection across the boundary
# between shadow DOM and light DOM.
# This is based on https://github.com/mfreed7/shadow-dom-selection
- name: dom.shadowdom.selection_across_boundary.enabled
  type: bool
  value: @IS_NIGHTLY_BUILD@
  mirror: always

Related Gecko bugs

Bug 1867058: Add the initial support for shadow dom selection

Other

  • Check content open issues to see if any pertain to the subject matter. If there are any that can be closed because of the work, do so. If there are any that can be fixed relatively quickly because of the knowledge from completing this issue and you have time, feel free to go ahead and fix them.

Metadata

Metadata

Assignees

Labels

Content:WebAPIWeb API docsfx release archiveA closed issue relating to firefox release notes for developers.

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions