Skip to content

Conversation

@dmethvin
Copy link
Member

Test had to be async, unfortunately. This patch causes Sizzle to reject a string like "#<img ...>" by throwing an error: "Syntax error, unrecognized expression: <" which is probably a good thing since this is a security issue.

@rwaldron
Copy link
Member

Nice test! Everything is reproduced as I expect it should.

dmethvin added a commit that referenced this pull request Aug 25, 2011
Fixes #9521. Prioritize #id over <tag> to avoid XSS via location.hash.
@dmethvin dmethvin merged commit db9e023 into jquery:master Aug 25, 2011
markelog pushed a commit to markelog/jquery that referenced this pull request Jan 11, 2012
Fixes #9521. Prioritize #id over <tag> to avoid XSS via location.hash.
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants