Repository navigation
fix(annotate): report an unsafe bound link even next to a plain one - #21
Merged
Merged
Conversation
Contributor
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. |
commit: |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Unsafe bound-link detection — Updated
checkPropsto resolve each bound valid prop independently, preventing a neighboring plainhreforsrcfrom masking an unsafe binding while retaining the renderer's existing filtering behavior. - Regression coverage — Added a parse-and-render test covering a safe plain link next to an unsafe
:hrefbinding and verifying the unsafe URL is omitted from HTML.
gpt-5.6-sol | 𝕏
Merged
onmax
added a commit
that referenced
this pull request
Oct 20, 2026
The earlier merge of main kept this branch's annotate files and dropped main's annotate changes (#12, #21). This takes main as it is and adds the slider on top. It also drops the annotateIssues alias that main had replaced with meta.issues, suppresses the click that ends a drag by remembering whether the last press dragged instead of guessing a touch origin, and gives the zoomed slider's handle its tab stop back.
This was referenced Oct 20, 2026
vite-hub Bot
pushed a commit
that referenced
this pull request
Oct 20, 2026
#14 was squashed from a branch older than #12 and #21, so it put back annotate's earlier read.ts and tests: an unknown prop named `constructor` or `__proto__` printed Object's own value as its hint, viewports compared as strings ("0900x0360" no longer matched "900x360"), and two tests expected the old href message. Those parts are restored; #17's compare mode stays. The slider e2e test clicked at coordinates measured before focusing the handle, which can scroll the page, so it missed the slider under load. It measures again before that click. zoom's client.ts holds its own copy of the zoom script since #14, so its doctor suppression covers it too.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow-up to #12, from its second review. It was pushed after #12 had merged.
::screenshot{href="https://safe.example" :href='"javascript:alert(1)"'}rendered the safe link and reported nothing about the unsafe binding, because the check looked at the resolved attributes, where the plain value still filledhref. The binding is now resolved on its own. A unit test covers it.🤖 Generated with Claude Code