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 script tag helper dependencies inheriting the script's HTML attributes #15438

Merged
merged 18 commits into from
Mar 6, 2024

Conversation

sarahelsaig
Copy link
Contributor

Also some code cleanup in ScriptTagHelper to keep it DRY.

Fixes #15375

@Skrypt
Copy link
Contributor

Skrypt commented Mar 5, 2024

I don't remember exactly why we were inheriting these script tag properties. I hope it won't break anything else. Maybe we should have unit tests to make sure that we cover the specs that were needed ... if we ever find them.

That's why unit tests are always helpful. At least, we then know which user cases it needs to cover. Now, we don't really know.

@sarahelsaig
Copy link
Contributor Author

To be fair this setting inheritance was set up 8 years ago in the same PR where the Orchard.ResourceManagement project was created. So it may just be a case of initial over-engineering.

@Skrypt
Copy link
Contributor

Skrypt commented Mar 5, 2024

Yeah and it was copied from Orchard 1 so add another 10 years on that. 😄

@sarahelsaig
Copy link
Contributor Author

Yeah, I've looked into it and guess what?

image

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.

Script type="module" issue
2 participants