Bug 1964509 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

#### Steps to reproduce

Visit [`view-source:https://raw.githubusercontent.com/whatwg/html/refs/heads/main/source#line500`](view-source:https://raw.githubusercontent.com/whatwg/html/refs/heads/main/source#line500).

#### Expected results

1. Line numbers should appear.

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

#### Actual results

`view-source:` doesn't render line numbers for `text/plain` (but does for `text/HTML`).
#### Steps to reproduce

Visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500).

#### Expected results

1. Line numbers should appear.

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

#### Actual results

`view-source:` doesn't render line numbers for `text/plain` (but does for `text/HTML`).
#### Steps to reproduce

1. For `/plain`, visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source).

1. For `/Markdown`, visit [`raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md`](https://raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40).

#### Expected results

1. Line numbers should appear.

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

#### Actual results

`view-source:` doesn't render line numbers for `text/plain` (but does for `text/HTML`).
#### Steps to reproduce

1. For `/plain`, visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500).

1. For `/Markdown`, visit [`raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md`](https://raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40).

#### Expected results

1. Line numbers should appear.

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

#### Actual results

`view-source:` doesn't render line numbers for `text/plain` (but does for `text/HTML`).
#### Steps to reproduce

1. For `/plain`, visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500).

1. For `/Markdown`, visit [`raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40`](https://raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40).

#### Expected results

1. Line numbers should appear.

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

#### Actual results

`view-source:` doesn't render line numbers for `text/plain` (but does for `text/HTML`).
#### Steps to reproduce

1. For `/plain`, visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500).

1. For `/Markdown`, visit [`raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40`](https://raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40).

#### Expected results

1. Line numbers should appear.

1. 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`).

1. Appending `#line$($number)` (like `#line10`) doesn't scroll to a specific line.
#### Steps to reproduce

1. For `/plain`, visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500).

1. For `/Markdown`, visit [`raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40`](https://raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40).

#### Expected results

1. Line numbers should appear.

1. 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`).

1. Appending `#line$($number)` (like `#line10`) doesn't scroll to a specific line in `text/plain`, but does in `text/HTML`.
#### Steps to reproduce

1. For `/plain`, visit [`https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500`](https://raw.githubusercontent.com/whatwg/html/88c7d93d0f87e19beadead68f8d2eb28c503a8a8/source#line500).

1. For `/Markdown`, visit [`raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40`](https://raw.githubusercontent.com/dazeb/markdown-downloader/532bfa37eab361413b0a7ddea2d959ec543b9831/README.md#line40).

#### Expected results

1. Line numbers should appear.

1. 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`).

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

Back to Bug 1964509 Comment 0