forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add groupdata for URL Fragment Text Directives spec (mdn#35682)
- Loading branch information
Showing
4 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: URL Fragment Text Directives | ||
slug: Web/API/URL_Fragment_Text_Directives | ||
page-type: web-api-overview | ||
browser-compat: | ||
- html.elements.a.text_fragments | ||
- api.Document.fragmentDirective | ||
- api.FragmentDirective | ||
- css.selectors.target-text | ||
--- | ||
|
||
{{DefaultAPISidebar("URL Fragment Text Directives")}}{{SeeCompatTable}} | ||
|
||
The **URL fragment text directives** API allows web apps to interact with _text fragments_ in the URL. [Text fragments](/en-US/docs/Web/URI/Fragment/Text_fragments) allow linking directly to a specific portion of text in a web document, without requiring the author to annotate it with an ID, using a particular syntax in the URL fragment. | ||
|
||
## Interfaces | ||
|
||
- {{domxref("FragmentDirective")}} | ||
- : A (currently) empty object. | ||
The existence of an object of this type in {{domxref("document.fragmentDirective")}} is used for feature detection. | ||
|
||
## Extensions to other interfaces | ||
|
||
- {{domxref("Document.fragmentDirective")}} | ||
- : A property that returns a `FragmentDirective` object for the current document. Currently only used for feature detection. | ||
|
||
## CSS selectors | ||
|
||
- {{cssxref("::target-text")}} | ||
- : Represents the text that has been scrolled to. It allows authors to choose how to highlight that section of text. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- [URI fragment](/en-US/docs/Web/URI/Fragment) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters