Skip to content

window.hashchange is not a function #63707

Closed

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

Activity

  1. added
    C-bugCategory: This is a bug.
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Aug 19, 2019
  2. fmckeogh commented on Aug 20, 2019

    @fmckeogh
    Contributor

    @rustbot claim

  3. added 4 commits that reference this issue on Sep 3, 2019
    cdc821f
    789d9b7
    e56fe69
    6da74a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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