-
Notifications
You must be signed in to change notification settings - Fork 400
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
fix: Add crossorigin as valid img tag attribute #918
Conversation
Benchmark resultsBase commit: |
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.
crossorigin also applies to video tag:
https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes
Benchmark resultsBase commit: |
<!-- Issue #917 --> | ||
<img src="http://www.example.com/image.png" crossorigin="anonymous"> | ||
<video src="http://www.example.com/video.mp4" crossorigin="anonymous"></video> | ||
<audio src="http://www.example.com/video.mp3" crossorigin="anonymous"></audio> |
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.
do we need a negative case? Per mdn, "An invalid keyword and an empty string will be handled as the anonymous keyword."
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.
It's not the compiler job to validate the HTML semantic, the only compiler only validates if the attribute is valid not the value.
Details
Fix #917
Does this PR introduce a breaking change?