Skip to content

Custom Highlight methods accept any AbstractRange#43744

Merged
Josh-Cena merged 3 commits intomdn:mainfrom
narasimhan-lakshmi:update/range-to-abstractRange
Apr 12, 2026
Merged

Custom Highlight methods accept any AbstractRange#43744
Josh-Cena merged 3 commits intomdn:mainfrom
narasimhan-lakshmi:update/range-to-abstractRange

Conversation

@narasimhan-lakshmi
Copy link
Copy Markdown
Contributor

@narasimhan-lakshmi narasimhan-lakshmi commented Apr 11, 2026

Description

Updated the CSS Custom Highlight API documentation to use AbstractRange (instead of Range) across the Highlight interface and related pages.
Fixed cross-references by replacing Range links with AbstractRange in the Highlight docs subtree.

Motivation

Made the changes according to the CSS Custom Highlight API documentation, making users to use proper methods without hassles.

Additional details

Related issues and pull requests

Fixes #43704

@narasimhan-lakshmi narasimhan-lakshmi requested a review from a team as a code owner April 11, 2026 05:19
@narasimhan-lakshmi narasimhan-lakshmi requested review from hamishwillee and removed request for a team April 11, 2026 05:19
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Apr 11, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 11, 2026

@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/m [PR only] 51-500 LoC changed and removed size/s [PR only] 6-50 LoC changed labels Apr 12, 2026
Copy link
Copy Markdown
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work. Thank you!

@Josh-Cena Josh-Cena changed the title fixed Highlight methods accept any AbstractRange not Range() Custom Highlight methods accept any AbstractRange Apr 12, 2026
@Josh-Cena Josh-Cena merged commit a2d0346 into mdn:main Apr 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight methods accept any AbstractRange not just Range

3 participants