CodeSampleX

Exemple

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

Cas

Objectif
Enforce strict whitespace token separation for CSS attribute selector [attr~="val"] and prevent hyphenated substring matching in happy-dom HOW
Paquets
happy-dom 20.11.2
Environnement
node
Créé
2026-08-17T01:51:52Z

Ce que l'on suppose souvent

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

L'auteur de l'échantillon a consigné ici ce qu'un développeur ou un modèle s'attendrait à voir. Le contrat ci-dessous est ce qui s'est réellement exécuté.

Contrat

Fichiers

Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté

Seeder d'origine

csx-seed

Reçus de vérification