Open Bug 1964509 Opened 6 months ago Updated 5 months ago

`view-source:` solely renders line numbers for `text/HTML`, excluding all other `text\/.*`s (like `/plain`).

Categories

(Toolkit :: View Source, enhancement, P3)

Firefox 138
x86_64
Linux
enhancement

Tracking

()

People

(Reporter: zn7esutb, Unassigned)

References

()

Details

Attachments

(2 files)

Steps to reproduce

  1. For /plain, visit https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500.

  2. For /Markdown, visit raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40.

Expected results

  1. Line numbers should appear.

  2. The user should be automatically scrolled to the relevant line.

Actual results

  1. view-source: doesn't render line numbers for text/plain (but does for text/HTML).

  2. Appending '#line' + $n (like #line10) doesn't scroll to a specific line in text/plain, but does in text/HTML.

Component: General → Untriaged
Summary: `view-source:` doesn't render line numbers for `text/plain` (but does for `text/HTML`). → `view-source:` solely renders line numbers for `text/HTML`, excluding all other `text\/.*`s (like `/plain`).

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Component: DOM: Core & HTML → View Source
Product: Core → Toolkit

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(odvarko)
Flags: needinfo?(odvarko)
Whiteboard: [devtools-triage]

The severity field is not set for this bug.
:Honza, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(odvarko)

Could be improved, but this sounds like an enhancement.

Type: defect → enhancement
Flags: needinfo?(odvarko)
Priority: -- → P3
Whiteboard: [devtools-triage]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: