Skip to content

Update broken example.com URI text fragment example - #46777

Merged
chrisdavidmills merged 1 commit into
mdn:mainfrom
plmrry:plmrry/fix-uri-text-fragment-example
Dec 1, 2026
Merged

chrisdavidmills merged 1 commit into
mdn:mainfrom
plmrry:plmrry/fix-uri-text-fragment-example

Conversation

@plmrry

@plmrry plmrry commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Description

The text at https://example.com has changed, making it so the associated prefix- example does not highlight any text:

https://example.com/#:~:text=avoid-,use

Screenshot 2026-12-01 at 1 16 07 AM

There is no longer the word "use" preceeded by the word "avoid."

This updates the example — along with the initial example, for consistency — to use the first and second instance of the word "for":

Motivation

Broken example.

The text at https://example.com has changed, making it so the associated `prefix-` example doe not highlight any text.

Updates the examples to use the first and second instance of the word "for"
@plmrry
plmrry requested a review from a team as a code owner December 1, 2026 06:19
@plmrry
plmrry requested review from pepelsbey and removed request for a team December 1, 2026 06:19
@github-actions github-actions Bot added Content:Other Any docs not covered by another "Content:" label size/xs [PR only] 0-5 LoC changed labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

External URLs (1)

URL: /en-US/docs/Web/URI/Reference/Fragment/Text_fragments
Title: Text fragments

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These fixes look good; thanks, @plmrry!

@chrisdavidmills
chrisdavidmills merged commit 0ab3089 into mdn:main Dec 1, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Other Any docs not covered by another "Content:" label size/xs [PR only] 0-5 LoC changed

2 participants