fix: preserve dev element metadata after hydration
Draft
SV
12d ago+174+174+012345678901234567890123456789-27-27-01234567890123456789
- Template-wide sibling scanning mistakes unmarked SSR component roots for caller elements; the marked-block skipping refined in #17830 cannot determine component ownership.
- Assign locations at known element references, retaining recursive assignment within static subtrees. Prefer this over adding component boundary markers: SSR output and production traversal remain unchanged. Keep the old helper for previously compiled dev components.
- Preserve parent hierarchy from #16255 and CSS-wrapper locations from #15982. Remove the dev deduplication exclusion from #18320, since factories no longer capture locations.
- Cover mount/hydration parity, nested static descendants, multi-root/consecutive/dynamic components, snippets, and synthetic CSS wrappers across HTML and tree fragments.