Bug Diaryadvanced
Bug: an [innerHTML] binding silently broke every image on the page
The server DOM has no innerHTML setter — the throw halted the update pass and stripped the srcset off the hero image.
Introduction
Symptom: after adding an icon component that set SVG geometry via [innerHTML], the prerendered hero image lost its srcset and src — but only in the SSR output.
Root cause: the server-side DOM shim has no innerHTML setter, so the binding threw during prerendering. Because a throw aborts the rest of the change-detection pass for that view, every binding after it — including the hero's srcset — was silently skipped.
The fix
Write the geometry to the element after render instead, via afterRenderEffect, which never runs on the server. Prerendering then emits a bare <svg> frame and the client fills it in, so hydration still matches.