Files
hyperframes/packages/studio-server
James RussoandClaude Fable 5.2 305686b31e fix(studio): an element patch is declined when its target is a script, style or template (#8764)
* fix(studio): an element patch is declined when its target is a script, style or template

A patch edits a layer. patchElementInHtml wrote text, markup and
attributes into whatever element the target resolved to, including an
inline script, a stylesheet or a template, so a text edit whose target
named one replaced that element's source. It now answers matched:false
and leaves the file as it is when the target, or an operation's child
target, is one of the tags that never take a stable id (script, style,
template, meta, link, noscript, base). A text edit of a layer whose only
child is a script writes the text on the layer instead of into the
script.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* chore(studio): say the declined-target rule in the name, not in comments

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 20:53:43 +00:00
..
2026-11-24 15:30:29 +00:00