Skip to content

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

@muhammad-usman-anwar

Description

@muhammad-usman-anwar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions