The XML reader MUST take one document of elements, attributes, text, CDATA, comments and the five named references and the numeric ones, MUST resolve the namespaces, and MUST refuse a document type (no entity is declared or expanded), a reference it does not know, a prefix that is not declared or is declared as empty, a document larger than the limit in bytes, nested deeper than the limit, or with more parts than the limit, each as a typed problem with its offset.
Enforced (check): .github: cd commons/anyfs-serve && bun run verify — suite/logical.test.ts
Proved by: anyfs-serve/suite/logical.test.ts
Written in: anyfs-serve/src/logical/mod.ts, anyfs-serve/src/logical/xml.ts
Tests: passed: suite/logical.test.ts a billion laughs and a deep nest are refused before they are expanded or read beyond the l; passed: suite/logical.test.ts the reader refuses what an attacker uses: a document type, an entity, an unknown reference; passed: suite/logical.test.ts the reader takes elements, attributes, text, CDATA, comments and references, resolves name