Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Fragment directives prevent revision expansion.

+1
−0

What The Problem Is

linux.codidact.com/posts/294865/history#3 renders the relevant revision, expanded. by contrast, when a fragment directive is appended, like linux.codidact.com/posts/294865/history#3:~:, it does not:

17:06:22.253 Uncaught Error: Syntax error, unrecognized expression: #3:~:text=it.%20They%20must%2C-,instead%2C%20merely%20wait,-for%20it%20to
    jQuery 7
        error
        tokenize
        select
        fa
        find
        init
        n
    t https://linux.codidact.com/assets/application-f633374372c26fba22ed96cbc21568af874c89721872e975217d544f37266dbc.js:74
    EventListener.handleEvent* https://linux.codidact.com/assets/application-f633374372c26fba22ed96cbc21568af874c89721872e975217d544f37266dbc.js:74
    jQuery 8
        i
        fireWith
        ready
        J
        promise
        <anonymous>
        <anonymous>
        <anonymous>
jquery.min.js:2:12556
    jQuery 7
        error
        tokenize
        select
        fa
        find
        init
        n
    t https://linux.codidact.com/assets/application-f633374372c26fba22ed96cbc21568af874c89721872e975217d544f37266dbc.js:74
    (Async: EventListener.handleEvent)
    <anonymous> https://linux.codidact.com/assets/application-f633374372c26fba22ed96cbc21568af874c89721872e975217d544f37266dbc.js:74
    jQuery 8
        i
        fireWith
        ready
        J
    (Async: EventListener.handleEvent)
        promise
        <anonymous>
        <anonymous>
        <anonymous>

This is problematic when the user wants to link to a text fragment.

How To Reproduce It

  1. #!/usr/bin/env xdg-open
    window.location.href = 'https://linux.codidact.com/posts/294865/history#3:~:text=it.%20They%20must%2C-,instead%2C%20merely%20wait,-for%20it%20to';
    
  2. Select the //*[@id="toolbox-tab-webconsole"].

  3. Expand the relevant div.message:nth-child.

Expected Behaviour

The relevant details.history-event should open.

My Environment

  • QPixel

    Version 1ff2d8b7 (2025-11-19 11:32:27Z)

  • My Browser

    1. #!/usr/bin/env sh
      rpm -qi $(rpm -qf $(command -v firefox))
      
    2. Name        : firefox
      Version     : 145.0.1
      Release     : 1.fc43
      Architecture: x86_64
      Install Date: Sun 23 Nov 2025 03:06:22 GMT
      Size        : 267898587
      Signature   :
                    RSA/SHA256, Thu 20 Nov 2025 08:37:07 GMT, Key ID 829b606631645531
      Source RPM  : firefox-145.0.1-1.fc43.src.rpm
      Build Date  : Wed 19 Nov 2025 09:22:06 GMT
      Build Host  : buildhw-x86-08.rdu3.fedoraproject.org
      Packager    : Fedora Project
      Vendor      : Fedora Project
      Bug URL     : https://bugz.fedoraproject.org/firefox
      

The Current Triage Status

I have reported this upstream, at github.com/codidact/qpixel/issues/1925.

History

2 comment threads

Text fragments seem to work for me (4 comments)
Thanks for introducing me to fragment directives (2 comments)

1 answer

+0
−0

Enable dom.text_fragments.enabled: true, because some third-party text fragment WebExtension implementations don't override the error produced by the client-side ECMAScript to forcefully open the details.

History

1 comment thread

Client side or server side? (2 comments)

Sign up to answer this question »