Skip to content

Clean up script-initiated patching example#90

Merged
noamr merged 2 commits intoWICG:mainfrom
tunetheweb:patch-3
Mar 5, 2026
Merged

Clean up script-initiated patching example#90
noamr merged 2 commits intoWICG:mainfrom
tunetheweb:patch-3

Conversation

@tunetheweb
Copy link
Collaborator

With #87 we can simplify this example.

Also the current example doesn't work (as it's <template for=result> instead of <template for=results>).

await writer.write(`
<template for=result>
<?start name=results>
<template for=results#next-result>
Copy link
Collaborator Author

@tunetheweb tunetheweb Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be just results as doesn't need the named part since it's replacing the whole template anyway:

Suggested change
<template for=results#next-result>
<template for=results>

But I think it's cleaner to be the same as the next insert.

@tunetheweb tunetheweb changed the title Patch 3 Clean up script-initiated patching example Mar 5, 2026
@noamr noamr merged commit cc14aee into WICG:main Mar 5, 2026
2 checks passed
github-actions bot added a commit that referenced this pull request Mar 5, 2026
SHA: cc14aee
Reason: push, by noamr

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants