Skip to content

Conversation

@blackwinter
Copy link
Contributor

Percent-encoded URL fragments prevent Firefox from jumping to their respective anchors (see, e.g., RDoc's History.txt: None of those links in the table of contents work in Firefox). Wikipedia (MediaWiki) does something similar, with . instead of -.

There's precedent in RDoc::{Alias,MethodAttr}#html_name (54dbcf7) and RDoc::Context::Section#aref (431baa1). This breaks backwards-compatibility, though.

…atible.

Percent-encoded URL fragments prevent Firefox from jumping to their respective anchors. Wikipedia (MediaWiki) does something similar, with `.` instead of `-`.

There's precedent in `RDoc::{Alias,MethodAttr}#html_name` (54dbcf7) and `RDoc::Context::Section#aref` (431baa1). This breaks backwards-compatibility, though.
blackwinter added a commit to blackwinter/hen that referenced this pull request Oct 24, 2014
@zzak
Copy link
Member

zzak commented Nov 22, 2014

Thank you for your work on RDoc @blackwinter, I'll try to check into this one soon!

Can you show a screenshot with steps to reproduce this?

@blackwinter
Copy link
Contributor Author

  1. Open RDoc's History.txt
  2. Click the 4.1.0 / 2013-12-26 entry in the Table of Contents
  3. Note that the browser won't jump to that entry on the page

rdoc-330

(Firefox 33.0 on Ubuntu Utopic)

@drbrain
Copy link
Member

drbrain commented Nov 26, 2014

Since these links only appear to work on chrome and safari I will commit it.

drbrain added a commit that referenced this pull request Nov 26, 2014
…mpatible

Make labels cross-browser compatible.
@drbrain drbrain merged commit ce472e8 into ruby:master Nov 26, 2014
drbrain added a commit that referenced this pull request Nov 26, 2014
@blackwinter
Copy link
Contributor Author

Thank you.

@blackwinter blackwinter deleted the make-labels-cross-browser-compatible branch November 27, 2014 09:19
blackwinter added a commit to blackwinter/hen that referenced this pull request Dec 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants