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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new_audit(crawlable-anchors): adds an anchor-href audit #10662
new_audit(crawlable-anchors): adds an anchor-href audit #10662
Changes from 13 commits
1a3fa4c
6ff1ef1
f1f5726
3601534
ee5ee29
6cea839
1b16197
def16b6
2e0a05c
5c0b9f4
7e4cbaf
d2095db
8ea8187
e23266c
1787102
b69d0fa
70a9a9c
db26d76
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still a little nervous about pathological sites with ridiculously long onclick handlers. I imagine they have to be out there :) @patrickhulce do you think the string length limit you mentioned before for a different thing would be ok to add to these?
(and if someday we need
onclick
to always be parseable js (or whatever) so it can't be truncated we can always lift the restriction then)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't imagine the risk is anywhere near what a
addEventListener
handler is though.I'm fine with a
.slice(0, 1024)
or whatever to err on the side of caution though if you think this is a legit issue 🤷There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would feel better, yes :) It's a public artifact and if it turns out badly we can't walk it back so easily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now doing a
onclick.slice(0, 1024)