In the codebase for the upcoming release of Firefox 131 scheduled for October 1, support for the Text Fragments mechanism is enabled by default, allowing external links to be created that navigate to arbitrary positions within the text on a page without adding markers to the page. <a name> and without relying on element identifiers. Positioning is determined using a text mask embedded in the link.
For example, when following the link "https://opennet.me/61785#:~:text=TextFragments", the browser will scroll to the position with the phrase "Text Fragments" and highlight it in color. In addition to setting a simple mask, it is possible to define the start and end masks of the highlighted text, as well as bindings to preceding and following masks used to highlight the desired fragment when there are multiple matches on the page. Chrome has had this functionality since 2020, and Safari since 2022.
Additionally, it is worth noting the publication of a prototype of a new configuration interface for Firefox, which features a changed design, an expanded number of categories with settings, and a breakdown of parameters into visually separated levels instead of displaying them one after another on a single page.


Source: opennet.ru
