Skip to content

/history's history-events do not open when their relevant id= has a fragment directive appended. #1925

@RokeJulianLockhart

Description

@RokeJulianLockhart

meta:295150

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

Metadata

Metadata

Assignees

Labels

area: frontendChanges to front-end codecomplexity: easyIssues that should take limited effort to resolve/fix/build.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions