Skip to main content

Harshal V. LADHE

Text Search and Find-in-Page

Finding text in the DOM, matching it safely and highlighting search results, from find-in-page to filter-as-you-type.

Content tagged text-search

  • Tutorial:CSS Custom Highlight API: ::highlight() for Search Results

    Highlight search matches with CSS without touching the DOM.
    Highlight search results with the CSS Custom Highlight API: ::highlight(), CSS.highlights, StaticRange, priority, accessibility and a mark fallback.
    Published at:
    Categories:CSS
    Estimated reading time:14 min read