-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix script tag helper dependencies inheriting the script's HTML attributes #15438
Conversation
…ngs so let's bring it in to DRY.
…to script-tag-helper-attributes
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. |
To be fair this setting inheritance was set up 8 years ago in the same PR where the |
Yeah and it was copied from Orchard 1 so add another 10 years on that. 😄 |
Also some code cleanup in
ScriptTagHelper
to keep it DRY.Fixes #15375