Skip to content
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

Merged
merged 2 commits into from
Jan 8, 2019

Conversation

pmdartus
Copy link
Member

@pmdartus pmdartus commented Jan 7, 2019

Details

Fix #917

Does this PR introduce a breaking change?

  • Yes
  • No

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 7c94042 | Target commit: 1a0099f

Copy link
Contributor

@caridy caridy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@salesforce-best-lwc-internal
Copy link

Benchmark results

Base commit: 7c94042 | Target commit: 64f2491

<!-- 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>
Copy link
Collaborator

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."

Copy link
Member Author

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.

@pmdartus pmdartus merged commit e861600 into master Jan 8, 2019
@caridy caridy deleted the pmdartus-crossorigin branch January 8, 2019 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants