Skip to content
quarry Check-in [058a2216c9]
Login

Check-in [058a2216c9]

Overview
Comment:One definition of swap-the-body-and-fix-the-URL

The diff toggle carried the replaceState handler as literal text in two attributes, with the reasoning in a comment above them. Both move onto a syncurl helper, so the next surface that needs it gets the try/catch and the replaceState-not-pushState choice for free instead of by copy-paste. Emitted markup is unchanged.

The helper neutralizes quotes in the fragment URL: it lands inside a JS string inside an attribute built as HTMLAttr, where escaping is off.

Timelines: family | ancestors | descendants | both | url-sync-helper
Files: files | file ages | folders
SHA3-256: 058a2216c9d752fdbb8d49a035d506c646e49d3ee4dc9ffedd882e992f95945a
User & Date: dmestas on 2026-08-27 10:52:44.903
Other Links: branch diff | manifest | tags
Context
2026-08-27
11:41
Merge trunk

Keeps the segment current with the landing.update work before it lands. closed check-in: 645b11cd8a user: dmestas tags: url-sync-helper

10:54
Doc tabs: keep the URL on the tab you are reading

Switching README to LICENSE swapped the panel and left the address bar behind, so the tab on screen was unlinkable and a reload dropped you back on README — even though /r/REPO?doc=LICENSE has always been a real route, and the anchor was already carrying it as its href.

Moves the tabs onto syncurl, which corrects the address bar to that same href before fetching the fragment. check-in: c2775268a4 user: dmestas tags: url-sync-doctabs

10:52
One definition of swap-the-body-and-fix-the-URL

The diff toggle carried the replaceState handler as literal text in two attributes, with the reasoning in a comment above them. Both move onto a syncurl helper, so the next surface that needs it gets the try/catch and the replaceState-not-pushState choice for free instead of by copy-paste. Emitted markup is unchanged.

The helper neutralizes quotes in the fragment URL: it lands inside a JS string inside an attribute built as HTMLAttr, where escaping is off. check-in: 058a2216c9 user: dmestas tags: url-sync-helper

10:08
Landed: the size cap on what is drawn. check-in: d05ac2958a user: dmestas tags: trunk
Changes