Commit a026010
committed
fix(core): filter DSD template from client-navigation swap + update rubric
Client router: when swapping the layout shell's light-DOM children on
navigation, the new body from DOMParser contains a
<template shadowrootmode="open"> element (the SSR's Declarative Shadow
DOM). DOMParser doesn't process DSD, so it stays as a regular DOM element.
Inserting it as light DOM into a shell that already has a shadow root
caused a brief layout flash — the template element disrupted slot
projection for one frame.
Fix: filter out any <template> with a shadowrootmode attribute before
calling replaceChildren. The shadow root already exists from the
initial page load; the DSD template is stale and shouldn't be in the
light DOM.
Also: landing page rubric changed from "ai-first · open source framework"
to "webjs: ai-first framework" per user request.1 parent c178975 commit a026010
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
| |||
0 commit comments