Steps to reproduce
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/Test_ascii_toc
- Click on the 😭abc123_~"`!^*<>(){}#;:@&=+-$,\/?#[]%F0%9F%98%AD存在%😭 link in the Table of Contents
Expected results
- Browser scrolls to top of section that the TOC link corresponds to
Actual results
- Browser does nothing
Different browsers display different behavior depending on the link clicked in the aforementioned TOC:
TOC link | chrome 78 | safari 13.0.3 | firefox 65.0 |
😭abc123_~"`!^*<>(){}#;:@&=+-$,\/?#[]%F0%9F%98%AD存在%😭 | doesn't work | doesn't work | doesn't work |
`%F0 | doesn't work | works | doesn't work |
Please Note: This bug is closely related to T238364 where we are trying to register Overlay routes that match the .mw-headline id attribute but are having a hard time because of the way different browsers encode different characters in the location address. This may likely impact T18691 as well.