diff --git a/src/runtime/bootstrap-lazy.ts b/src/runtime/bootstrap-lazy.ts index a839716f33c..fe2a09bb624 100644 --- a/src/runtime/bootstrap-lazy.ts +++ b/src/runtime/bootstrap-lazy.ts @@ -201,12 +201,12 @@ export const bootstrapLazy = (lazyBundles: d.LazyBundlesRuntimeData, options: d. if (cmpTags.length > 0) { // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM if (hasSlotRelocation) { - dataStyles.innerHTML += SLOT_FB_CSS; + dataStyles.textContent += SLOT_FB_CSS; } // Add hydration styles if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) { - dataStyles.innerHTML += cmpTags + HYDRATED_CSS; + dataStyles.textContent += cmpTags + HYDRATED_CSS; } // If we have styles, add them to the DOM