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

Special Element for Document Element(<html/> tag) #10183

Closed
muhammad-usman-anwar opened this issue Jan 14, 2024 · 3 comments
Closed

Special Element for Document Element(<html/> tag) #10183

muhammad-usman-anwar opened this issue Jan 14, 2024 · 3 comments

Comments

@muhammad-usman-anwar
Copy link

Describe the problem

I was in need to bind lang and dir attributes of documentElement, unable to find any first party solution to it. Had to resort manual dom manipulation using document.documentElement. Also looked into Skeleton UI's source code, it also has some what similar approach to mine. In official documentation, I was able to find the following special elements.
image

Describe the proposed solution

Its implementation should be similar to <svelte:head/> where you can bind to its arrtibutes, like <svelte:dom/> or <svelte:html/>. Or may be expose its attributes through, <svelte:document/> special element

Importance

would make my life easier

@Prinzhorn
Copy link
Contributor

Somewhat duplicate of #3105 which also includes comments about exactly what you're asking #3105 (comment)

I found this via https://github.com/search?q=repo%3Asveltejs%2Fsvelte+lang+documentElement&type=issues

@LeaVerou
Copy link

LeaVerou commented Mar 4, 2024

Came here to suggest this too. This issue is a duplicate of #8663 which has had more engagement.

@dummdidumm
Copy link
Member

Closing as duplicate of #8663

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2024
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

No branches or pull requests

4 participants