HTML 規格更正:模組腳本正式分五類,text module script 補上位置
WHATWG HTML Living Standard (GitHub) · 2026-08-27
從四類改成五類
WHATWG 於 2026-08-27 推送 commit 9ead9de,把 HTML Living Standard 裡的一句「Module scripts can be classified into four types」改成「five types」。這不是單純錯字修正,而是規格正文終於追上稍早就已加入、卻沒被同步計數的第五種模組腳本類型。
- <p>Module scripts can be classified into four types:</p>
+ <p>Module scripts can be classified into five types:</p>五種 module script 各自對應什麼
規格緊接著列出的五類分別是 JavaScript module script(record 為 Source Text Module Record)、CSS module script、JSON module script、text module script,以及 WebAssembly module script。
- CSS module script:record 是 Synthetic Module Record,由 create a CSS module script 演算法產生,對應 import attributes 語法
with { type: "css" }。 - JSON module script:同樣是 Synthetic Module Record,對應
with { type: "json" }。 - text module script:新補上的第五類,由 create a text module script 演算法產生,代表以 UTF-8 編碼的純文字內容,對應
with { type: "text" }。 - WebAssembly module script:record 為 WebAssembly Module Record。
規格同時註明,由於 CSS、JSON、text 這三類不會 import 其他相依模組、evaluation 時也不會拋出例外,它們的 fetch options 與 base URL 一律固定為 null。
WHATWG 編輯連發修字:COEP report-only、textarea 錨點一次校正
WHATWG HTML Living Standard (GitHub) · 2026-08-27
同一天,jmdyck 提交 commit 8ad51e2,對 HTML 規格的 source 檔案做了一輪用詞、拼字、標記與空白的編輯性修正,單一檔案改動 73 行新增、69 行刪除,橫跨表單、canvas、microdata、COEP 等多個章節。
幾個具代表性的修正
<embed>/<object>章節把「the explicit Content-Type metadata」的語序改為「explicit Content-Type metadata」,並把一處誤寫的url更正為URL。<textarea>的 value 演算法中,連到錯誤定義的錨點concept-textarea-raw-value改為正確的concept-fe-api-value。- Cross-Origin-Embedder-Policy 段落把多處「report only value」「report only reporting endpoint」統一補上連字號,改成「report-only」。
- canvas 2D context 的色彩空間演算法,統一調整了「context's color space」的所有格語序。
這類 commit 不改變任何實際行為,純粹是讓規格用詞讀起來更準確、也讓文字內的錨點與實際定義對得上。
Vue 3.5.42 釋出:10 項修復涵蓋 hydration、v-model 與 CSS !important
Vue core (GitHub Releases) · 2026-08-27
Vue core 於 2026-08-27 05:47 UTC 釋出 v3.5.42,接續 8 月 5 日的 v3.5.41,是一個純 patch 版本,CHANGELOG 列出 10 項 bug fix,不含任何 breaking change。
hydration 與 suspense 的邊角案例
其中兩項都跟 lazy hydration 有關:#15252 處理非同步元件在 lazy hydration 完成前就被卸載的情況,#15263 修正搬移一個尚未 resolve 的非同步 fragment 時的錯誤。suspense 方面,#15333(closes #15332)修正 leaving branch 在其掛載仍處於 pending 狀態時,被誤判為 fallback 內容的問題;#15291(closes #15288)則避免對已卸載的 suspense 子節點做不必要的快取。
v-model 與樣式綁定
表單相關修復有兩項:#15346 修正 .trim 與 .number 兩個 v-model 修飾符疊加時,.trim 的結果會被 .number 覆蓋掉的問題;#15298(closes 長年待修 issue #10505)修正在 change handler 裡覆寫 model 值後,<select> 畫面沒有重新同步的問題。runtime-dom 的 #15348(31da934)則讓 style 綁定支援在 CSS 自訂屬性上加 !important,先前這個寫法會被靜默忽略。
其餘修復
另外還包含:server-renderer 的 #15266 讓 SSR 拒絕在屬性名稱中出現 CR 字元;shared 的 #15328(closes #15320)修正 Map/Set 深層比較邏輯誤判不相等的問題;runtime-core 的 #15313(closes #12680)修正開發模式下 root 節點為註解 fragment 時 $el 解析錯誤的問題。