Repository navigation
Fixed: fold long link values in the response headers again - #560
Conversation
Since the headers became a list (39f4a7f), folding is left to CSS. A Location value is a link, and links to a new test were an <input type="submit">, whose text can't wrap. A long value therefore sat on its own line and ran off the box. Render the link as a <button> instead, and let it wrap inside the response box. The browser test that clicks "check embedded" selects the button now. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The status-link assertions matched value="301" on the old submit input. The negative one would have passed vacuously with a button, so both now match the button's text. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…escaped Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Independent review of 8a15f51, by a separate Claude subagent that was given the diff and not the author's conclusions. I haven't re-run its checks by hand, apart from the test fixes noted below. It found no blockers. It measured the Location link on One claim in the review was wrong: it said Checked, nothing found
Findings
AI-generated review (Claude Code), posted at Mark's request; no human has reviewed the diff line by line yet. 🤖 Generated with Claude Code |
A long
Locationvalue (e.g., a Google/sorry/index?continue=...redirect) no longer folds in the response header box. It drops to its own line and runs off the right edge, with a horizontal scrollbar.This regressed in 39f4a7f, when the headers became a list. Folding used to happen in Python (
HeaderPresenter._wrap); that commit removed it and left wrapping to CSS (overflow-wrap: anywhereon#response li). ButLocation,Content-LocationandX-XRDS-Locationare rendered as links, and a link to a new test is a POST form with an<input type="submit">. A native input's text can't wrap, whatever the CSS says.The fix renders those links as
<button type="submit">instead, and lets.post_linkwrap inside the response box. Class names are unchanged. The browser test that clicks "check embedded" now selects the button.Checked:
style.css; a plain<a>wrapped and the submit input didn't.Location; the value wraps with the hanging indent.make test_webui,test/test_html_escaping.py,make lint_pyandmake typecheck_pypass.Not checked: the multi-resource table view, where
.post_linkis also used, and mobile widths.AI-generated (Claude Code). Mark reported the regression from a screenshot and approved the root cause and approach before any change was made; the diff hasn't had a line-by-line human review yet.
🤖 Generated with Claude Code