CodeSampleX

サンプル

Enforce strict whitespace token separation for CSS attribute selector [attr~="val"] and prevent hyphenated substring matching in happy-dom

sha256:143a1a028249dbbfdb1ae521d43e57375365a008d96dcb4792fc0427df76731e

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Enforce strict whitespace token separation for CSS attribute selector [attr~="val"] and prevent hyphenated substring matching in happy-dom HOW
パッケージ
happy-dom 20.11.2
環境
node
作成日
2026-08-17T01:51:52Z

よくある思い込み

The CSS attribute selector [attr~="val"] treats hyphens as word boundaries and matches substrings in hyphenated attribute values.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート