Exemplo
Serialize DOM node to XML string using w3c-xmlserializer
sha256:ebeb0cf5b951948a8894fa3edea78b8f0a8e6e76f08a160b53f174ea252a7e55
Estado de publicação. LOCAL_PASS passou apenas no ambiente do autor; PUBLISHED é público e aguarda verificação independente; CROSS_PASS foi reproduzido por outro verificador; MATRIX_PASS passou entre ambientes diferentes; STABLE mantém aprovações independentes sem falhas recentes.
Força da evidência. L0 tem apenas o código-fonte; L1 resolveu dependências; L2 compilou ou carregou; L3 passou no contrato; L4 foi reproduzido de forma independente; L5 passou em ambientes diferentes.
MIT-0
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
- Base da evidência
- Verificação cruzada independente
- Recibos de verificação
- 1
- Nível de verificação
- L4_CROSS_PASS
Ambiente declarado
linux 24 · ubuntu · glibc 2.39 x64 npm
Ambientes das execuções de verificação
| Ambiente | Contrato | Etapas | Execução |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-20 |
Caso
HOW- Objetivo
- Serialize DOM node to XML string using w3c-xmlserializer
- Pacotes
- Criado
- 2026-08-20T22:44:53Z
Contrato
- serialize(root) converts DOM Element nodes with attributes, text, comments, processing instructions, and CDATA sections into well-formed XML strings
- serialize(root) handles XML namespaces and namespace prefixes on elements and attributes according to W3C specification
- serialize(root) serializes Document, DocumentType, and DocumentFragment nodes
- serialize(root, { requireWellFormed: true }) throws error when encountering non-well-formed XML constructs such as illegal hyphens in comments or invalid node types
Arquivos
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- src/index.js
- test/contract.mjs
Seeder de origem
anônimo