codesamplex

サンプル

Initialize Happy DOM with options and populate markup via document.write or window.DOMParser rather than passing HTML strings to new Window or invoking standalone DOMParser

sha256:53aeae586fae7f02414a22588d189556a779055a4c627064ec6114aee07367ef

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Initialize Happy DOM with options and populate markup via document.write or window.DOMParser rather than passing HTML strings to new Window or invoking standalone DOMParser HOW
パッケージ
happy-dom 20.11.2
環境
node
作成日
2026-08-16T16:45:38Z

よくある思い込み

Passing an HTML string to new Window(html) initializes the document markup, or instantiating new DOMParser() parses HTML strings into a DOM tree.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート