-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
When an attribute is immediately preceded by "/", first character is cut off from the attribute's name #16
Comments
Hello @robhol , We merged the pull request: #17 In the v1.5.0-beta7 Let us know if the issue is fixed on your side. Best Regards, Jonathan |
I can confirm that the snippet now behaves as expected in beta8 - unfortunately I discovered another bug as well. It's closely related, so I'll post it here for now and can post a separate one if necessary. This snippet: is now interpreted by HAP as having the attribute "/onerror", but the script in it will run in Chrome, Firefox and Edge. |
Hello @robhol , You are right. We will try to investigate and fix this issue this weekend. Best Regards, Jonathan |
Hello @robhol , The fix has been completed. It will be released within a few hours. The code should not support many "Empty Tag" Best Regards, Jonathan |
Hello @robhol , The version v1.5.0-beta9 has been released: Let us know if the issue is fixed. Best Regards, Jonathan |
Closing Comment: Fixed |
So this is one of those things that web browsers decided to let people get away with for unknown reasons:
This will actually parse in browsers (tested in Chrome and FF), and can be used to inject scripts where they don't belong.
Problem
When an attribute is immediately preceded by "/", the first character is cut off from the attribute's name.
Demonstration
This minimal RoslynPad snippet illustrates the problem:
Expected:
src, onerror, src, onerror
- Got:src, nerror, rc, nerror
Affected versions
The text was updated successfully, but these errors were encountered: