From 67c79b5c01aaf5a1ec6c422a7c9bbb4eabc9e8e2 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Wed, 4 Sep 2024 07:20:24 +1000 Subject: [PATCH] FF131 Relnote - Text fragments supported (#35717) --- files/en-us/mozilla/firefox/releases/131/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/en-us/mozilla/firefox/releases/131/index.md b/files/en-us/mozilla/firefox/releases/131/index.md index 1d28bdd7f13f48c..ee0f94f23318186 100644 --- a/files/en-us/mozilla/firefox/releases/131/index.md +++ b/files/en-us/mozilla/firefox/releases/131/index.md @@ -40,6 +40,9 @@ This article provides information about the changes in Firefox 131 that affect d ### APIs +- [Text fragments](/en-US/docs/Web/URI/Fragment/Text_fragments) are now supported, allowing users to link to and highlight specific portions of text in a web page. This feature uses a particular syntax in the [URL fragment](/en-US/docs/Web/URI/Fragment) that identifies the target based on patterns in the rendered text. + Website developers can also use the existence of the {{domxref("Document.fragmentDirective")}} property (an instance of the {{domxref("FragmentDirective")}} interface) to feature check for text fragment support, and the {{CSSxRef("::target-text")}} pseudo element to select and style text that has been selected using a text fragment link. ([Firefox bug 1914877](https://bugzil.la/1914877)) + #### DOM #### Media, WebRTC, and Web Audio