-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support custom attributes for CSS and JS includes #2
Conversation
Kudos, SonarCloud Quality Gate passed! |
@stefanseifert - I am curious to know only one question ?. Why to use "customAttributes" instead to have "categories" same as JSInclude?. Note: We have predefined attribute for link rel and giving flexibility to have any attribute can pollute clientlibs inclusion in code too ? e.g. Case 1: "rel" attribute can have only "prefetch | preload | preconnect | dns-prefetch | prerender | modulepreload" Different "rel" attribute variations
Different "as" attribute variations
Reference link: https://www.debugbear.com/blog/resource-hints-rel-preload-prefetch-preconnect |
we currently have a set of HTML Standard attributes supported out of the box, with validation to ensure only valid property values are used, see https://wcm.io/wcm/ui/clientlibs/usage.html for completely custom attributes like "data-contrast" as listed as example in #1 this PR can help. maybe there as some HTML standard attributes we currently do not support out of the box we should add support for? the examples you are listing point in this direction - can you create a separate issues for this, that would be a separate PR. |
Thanks @stefanseifert for the quick response. I have created separate issue for above - #3 |
Kudos, SonarCloud Quality Gate passed! |
Looks good to me, @stefanseifert ! |
Fixes #1
Examples: