Skip to content

window.hashchange is not a function #63707

Closed
@richardwhiuk

Description

@richardwhiuk

When selecting Rust source code with either the latest stable or the latest nightly, the following is seen:

main-20190703-1.36.0-a53f9df32.js:1 Uncaught TypeError: window.hashchange is not a function
    at set_fragment (main-20190703-1.36.0-a53f9df32.js:1)
    at HTMLDocument.document.onclick (main-20190703-1.36.0-a53f9df32.js:1)

e.g. see https://docs.rs/ensure/0.2.1/src/ensure/lib.rs.html#11 and try and select some lines

Suspect that https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/static/main.js#L347 should be highlightSourceLines(null).

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions