Files
hyperframes/packages
Ular Kimsanov 14d582c0f5 fix(studio): apply-to-scope writes only the grading attribute, exactly as given (#8767)
* fix(studio): apply-to-scope writes only the grading attribute, exactly as given

patchMediaTag passed the new attribute to String.prototype.replace as a
replacement string, so `$&`, `$'` and similar in a grading value were
expanded from the old tag and could split the attribute. Its match also
needed a quoted value, so an unquoted or valueless attribute was
duplicated instead of replaced. It now walks the tag's attributes the way
the browser reads them and slices out the data-color-grading spans: the
first gets the new value, any later duplicate is removed.

When a grading is copied to other media, an unknown preset id, an unknown
color space, or a LUT source with a scheme other than http, https or data
is dropped instead of being written into other files. Variable references
stay.

* fix(studio): apply-to-scope keeps a known bare preset id

The attribute's short form is a preset id alone, which core reads as a
preset. It is now kept when it is a known id or a variable reference
instead of being refused as unreadable. The quick-save concurrency test
applied the filler preset warm, which is not a preset; it applies
warm-daylight now.

* fix(studio): grading attribute scan splits on HTML whitespace, appends after the last attribute

The scan used JavaScript's \s, which also splits on a no-break space that
HTML keeps inside an unquoted value, so clearing a grade could cut the
source. It now separates on HTML whitespace only. A new attribute goes
after the last attribute the scan read, so the slash that ends an
unquoted value such as src=images/ stays part of it.
2026-11-25 05:02:23 +00:00
..
2026-11-25 02:06:42 +00:00
2026-11-25 02:06:42 +00:00
2026-11-25 02:06:42 +00:00
2026-11-25 02:06:42 +00:00