fix(web): ignore a missing documentElement when marking the home screen revealed
Independent Staging Quality Gate / validate (push) Failing after 10m8s
Independent Staging Quality Gate / publish (push) Skipped

This commit is contained in:
jesse-ux
2026-09-22 13:42:36 +08:00
parent c6d421edba
commit f77a1b5a33
4 changed files with 28 additions and 2 deletions
@@ -0,0 +1,7 @@
# 进度 · 首屏揭幕标记不再打断外壳注册(2026-09-22)
- 基线:`c6d421ed``origin/staging`)。门禁 run 1445 红在 `6d06fca0`,部署仍是 `1bc6a954`
- 根因:`useHomeShellRegistration``document` 存在但没有 `documentElement` 时写 `dataset`,抛 `TypeError`。外壳生命周期四条测试因此失败。
- 修复:没有 `documentElement` 就返回。标记赋值那一行还在。
- 没有改 CSS 断点、composer、或别的会话后来加的用例。
- 验证见同轮测试输出。未跑全量 `npm test` / `next build`。未部署。