Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fragmentDirective - live examples #35716

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Sep 3, 2024

FF131 adds support for text fragments in https://bugzilla.mozilla.org/show_bug.cgi?id=1914877

This just adds a live example logging whether the feature is supported by checking for existence of the Document.fragmentDirective. Not strictly necessary, but since this is the main use of the interface, and we can check the object, it is kind of useful to do so.

I would also have added in page-examples for text fragment highlighting and the use of the CSS, but that is more challenging with live examples :-0

Related docs tracked in #35703

@hamishwillee hamishwillee requested a review from a team as a code owner September 3, 2024 05:42
@hamishwillee hamishwillee requested review from wbamberg and removed request for a team September 3, 2024 05:42
@github-actions github-actions bot added Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed labels Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

Preview URLs

(comment last updated: 2024-09-12 23:16:39)

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

Minor suggestion, but everything looks good 👍🏻

Co-authored-by: Brian Thomas Smith <[email protected]>
@hamishwillee
Copy link
Collaborator Author

Thanks @bsmth . Good suggestions. Merged :-)

@hamishwillee hamishwillee merged commit f7e5cd5 into mdn:main Sep 12, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants