Skip to content

Clarify behavior of calling attachShadow on a declarative shadowRoot #12268

@sorvell

Description

@sorvell

What is the issue with the HTML Standard?

Calling attachShadow on a declaratively created shadowRoot does not set the values supplied in the ShadowRootInit. It appears to be expected based on the spec that you should be able to configure shadowRoot properties other than mode. All browsers currently behave consistently so this likely needs clarification in the spec.

See this reproduction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs testsMoving the issue forward requires someone to write teststopic: custom elementsRelates to custom elements (as defined in DOM and HTML)topic: shadowRelates to shadow trees (as defined in DOM)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions