Skip to content

Support markers on shadow roots#1456

Closed
foolip wants to merge 1 commit intomainfrom
foolip/shadow-marker
Closed

Support markers on shadow roots#1456
foolip wants to merge 1 commit intomainfrom
foolip/shadow-marker

Conversation

@foolip
Copy link
Copy Markdown
Member

@foolip foolip commented Mar 6, 2026

This can be set in attachShadow() but will also be supported via
<template marker>, so that <template for> can work inside DSD.

(See WHATWG Working Mode: Changes for more details.)

This can be set in `attachShadow()` but will also be supported via
`<template marker>`, so that `<template for>` can work inside DSD.
@foolip
Copy link
Copy Markdown
Member Author

foolip commented Mar 6, 2026

Here's an example of the kind of thing that should work with this PR and changes in whatwg/html#11818 that I'm preparing:

<div>
 <template shadowrootmode="open" marker="x">
  Stuff: <?marker>
  <!-- time passes -->
  <template for="x">Hello World</template>
 </template>
</div>

That's analogous to this style of sibling-patching not involving DSD:

<div marker="x">
 Stuff: <?marker>
 <!-- time passes -->
 <template for="x">Hello World</template>
</div>

@foolip
Copy link
Copy Markdown
Member Author

foolip commented Mar 18, 2026

This will no longer be needed if we don't have the marker content attribute, which I've tentatively removed in whatwg/html@862f5f2 and hope will be acceptable to everyone.

@foolip foolip closed this Mar 18, 2026
@annevk annevk deleted the foolip/shadow-marker branch March 19, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant