Skip to content

The text selection in code blocks is verry clunky, in particular for firefox / zen #8292

@tpoisseau

Description

@tpoisseau

URL:

https://nodejs.org/en

Browser Name:

Zen

Browser Version:

1.16.4b (Firefox 143.0.4) (aarch64)

Operating System:

MacOS 26.0.1 (25A362)

How to reproduce the issue:

For Firefox 144.0b9 (aarch64) / Zen

  1. On homepage, on any code example. I try to select text.
  2. I expect it select the text I selected.
  3. What I got: The text selection is partial, all symbols with typescript tooltip are ignored. When I copy paste, new line replace text not selected.
  4. Image

copy paste:

const 

 = 

((

, 

) => {

If I double click on words with no ts tooltip, it select the word, If I triple click, it select the line without symbols with ts tooltips.
If I do the same on words with ts tooltip, no selection.

For chrome and safari, I can select the text by draging the mouse. and copy paste works:
const server = createServer((req, res) => {

But if I double or triple click on words with ts annotation. Nothing is selected.

For all browser, it is not possible to start the selection on words with typescript tooltip.

This issue seems to be everywhere in nodejs.org, except docs part (it does not use this component to display code).

Tested on :

  • Safari 26.0.1 (21622.1.22.11.15)
  • Chrome 141.0.7390.123 (Build officiel) (arm64)
  • Firefox 145.0b8 (aarch64)
  • Zen 1.16.4b (Firefox 143.0.4) (aarch64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions