-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add <svelte:html> special element #8663
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
Comments
That would be a good addition, I guess. |
+1 on this suggestion |
Came here to suggest this too. My use case was setting the CSS |
This would be a perfect quick solution to conditionally add microdata to the html tag, like But I guess it's better to do it by directly accessing it with js to avoid overhead. |
Describe the problem
I need to change tag's attributes dynamically.
Describe the proposed solution
Only I can do is document.querySelector('html').setAttribute('data-theme','dark') and document.querySelector('html').setAttribute('lang','kz') for every attribute
Alternatives considered
Please add svelte:html special element for that
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: