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

Change property readers to camelCasing #350

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

seanpdoyle
Copy link
Contributor

The casing of the <script> element's crossorigin and referrerpolicy HTML attributes differ from the casing of HTMLScriptElement.crossOrigin and
HTMLScriptElement.referrerPolicy properties.

Prior to this commit, the implementation erroneously attempted to read values from the properties through names cased as if they were attributes.

This commit replaces the lower-cased accesses with camelCased ones.

The casing of the `<script>` element's [crossorigin][] and
[referrerpolicy][] HTML _attributes_ differ from the casing of
[HTMLScriptElement.crossOrigin][] and
[HTMLScriptElement.referrerPolicy][] _properties_.

Prior to this commit, the implementation erroneously attempted to read
values from the _properties_ through names cased as if they were
_attributes_.

This commit replaces the lower-cased accesses with camelCased ones.

[crossorigin]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-crossorigin
[referrerpolicy]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-referrerpolicy
[HTMLScriptElement.crossOrigin]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement#instance_properties
[HTMLScriptElement.referrerPolicy]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/referrerPolicy
@guybedford guybedford merged commit 3f77414 into guybedford:main Jan 9, 2023
@guybedford
Copy link
Owner

Amazing, thanks so much for catching this one. The logic was right, just not the implementation :)

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.

None yet

2 participants