Skip to content

Commit b2c27c2

Browse files
authored
Merge pull request #86 from WICG/noamr-patch-7
Add detail about patching behavior after it starts
2 parents eac9249 + 9d85ab9 commit b2c27c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

patching-explainer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ A few details about patching:
8989
- Templates with a valid `for` attribute are not attached to the DOM, while templates that don't apply are attached to signal an error.
9090
- If the patching element is not a direct child of `<body>`, the target element has to have a common ancestor with the patching element's parent.
9191
- The patch template has to be in the same tree (shadow) scope as the target element.
92+
- When the template's target is discovered, the content between the markers is removed, but the markers are left in the tree until the template is closed.
93+
- New content is always inserted into the element with the corresponding marker attribute. If the original `<?end>` or `<?marker>` PI is still there, it is inserted before that node. Otherwise, it is appended.
9294

9395
### Interleaved patching
9496

0 commit comments

Comments
 (0)