XML Base, xml:id and XLink were read only as far as the CR still refers to them: the CR keeps one sentence about XML Base in the linking chapter, does not mention xml:id, and keeps xlink:href and xlink:title as deprecated attributes.
Total: 162 rows.
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/prod-01-document | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-document | A document is a prolog, exactly one root element, then optional comments, PIs and whitespace. | donner/base/xml/XMLParser.cc:400-444 loops over any number of top-level nodes of any kind, with no ordering state; donner/base/xml/XMLParser.cc:401-403 returns an empty document for empty input. | donner/svg/parser/SVGParser.cc:903-965 accepts the first element only if its local name is svg and rejects any later top-level element; donner/svg/parser/SVGParser.cc:1064-1071 rejects a document with no root. | donner/base/xml/tests/XMLParser_tests.cc:1787 Empty (pins success on empty input); donner/svg/parser/tests/SVGParser_tests.cc:474 ParseXMLDocumentReportsMissingSvgRoot; donner/svg/parser/tests/SVGParser_tests.cc:653 RootElementNotSvgFails | low | S | The XML API alone accepts zero or many roots; the SVG layer supplies the single-root rule. See the three document-level rows below. |
| feat:xml/doc-single-root | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#dt-root | Exactly one element is the root; no part of it appears in the content of another element. | donner/base/xml/XMLParser.cc:419-426 appends every top-level element to the document node. | donner/svg/parser/SVGParser.cc:903 (name.name == "svg" && !foundRootSvg) and donner/svg/parser/SVGParser.cc:956-964 make a second top-level element a fatal error. | donner/svg/parser/tests/SVGParser_tests.cc:653 RootElementNotSvgFails (wrong root); no test with two root elements | low | S | By code reading a second <svg> at top level fails with "Unexpected element `<svg>` at root". An SVG fragment nested inside a foreign root (the parent-XML example in struct.html) is rejected for the same reason. |
| feat:xml/doc-content-after-root | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-document | After the root only comments, PIs and whitespace may follow; character data, CDATA, references and declarations may not. | donner/base/xml/XMLParser.cc:428-436 rejects non-whitespace text and references at top level; donner/base/xml/XMLParser.cc:1638-1655 accepts CDATA sections and DOCTYPE at any top-level position, before or after the root. | donner/svg/parser/SVGParser.cc:865-871 drops every non-element top-level node during projection. | donner/base/xml/tests/XMLParser_tests.cc:1798 InvalidNode (text after root); donner/base/xml/tests/XMLParser_tests.cc:1980 ParseCData pins top-level CDATA as accepted | low | S | Trailing text is fatal as required. Top-level CDATA and a DOCTYPE after the root are accepted silently. |
| feat:xml/doc-empty-input | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-well-formed | A well-formed document contains at least one element; empty or whitespace-only input is not a document. | donner/base/xml/XMLParser.cc:401-403 and donner/base/xml/XMLParser.cc:411-415 return success with an empty tree. | donner/svg/parser/SVGParser.cc:1064-1071 reports "No SVG element found in document". | donner/base/xml/tests/XMLParser_tests.cc:1787 Empty; donner/svg/parser/tests/SVGParser_tests.cc:474 ParseXMLDocumentReportsMissingSvgRoot | low | S | Only the XML API is lenient; SVG parsing fails as required. |
| feat:xml/prod-22-prolog | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-prolog | The prolog is an optional XML declaration, then Misc, then at most one doctype declaration, then Misc, all before the root. | donner/base/xml/XMLParser.cc:1615-1662 dispatches declaration, DOCTYPE, comment and PI with no position or count checks; the same function serves element content (donner/base/xml/XMLParser.cc:1742). | donner/base/xml/XMLParser.cc:1270-1287 records entity declarations from every DOCTYPE it meets, wherever it is. | donner/base/xml/tests/XMLParser_tests.cc:2037 ParseDoctype; no test for a second or misplaced DOCTYPE | low | S | By code reading <svg><!DOCTYPE x [<!ENTITY e "v">]>&e;</svg> parses and expands the entity; two DOCTYPEs are both honored. |
| feat:xml/prod-27-Misc | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Misc | Comments, PIs and whitespace may appear before and after the root. | donner/base/xml/XMLParser.cc:411-413 skips top-level whitespace; donner/base/xml/XMLParser.cc:1161-1204 comments; donner/base/xml/XMLParser.cc:1324-1361 PIs. | donner/base/xml/XMLParser.h:65 and donner/base/xml/XMLParser.h:85: both are dropped unless the caller opts in; donner/svg/parser/SVGParser.cc:1015-1020 does not opt in. | donner/base/xml/tests/XMLParser_tests.cc:2010 ParseComment; donner/base/xml/tests/XMLParser_tests.cc:2178 ParseProcessingInstructions; donner/base/xml/tests/XMLParser_tests.cc:2463 EncodingLikeContentDoesNotDeclareDocumentEncoding | - | - | PI targets beginning with xml are the exception, see feat:xml/prod-17-PITarget. |
| feat:xml/prod-23-XMLDecl-position | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-XMLDecl | The XML declaration may appear only as the very first thing in the document entity, at most once. | donner/base/xml/XMLParser.cc:1624-1630 treats <?xml as a declaration wherever a node may start, including after whitespace, after other nodes and inside element content. | donner/base/xml/XMLParser.cc:1141-1147 applies the encoding check to every such declaration. | donner/base/xml/tests/XMLParser_tests.cc:2260 ParseXMLDeclaration (leading position only) | low | S | By code reading <?xml version="1.0"?> with leading whitespace, a second declaration, and a declaration inside <svg> all parse. |
| feat:xml/prod-24-VersionInfo | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-VersionInfo | The declaration must carry a version pseudo-attribute, first. | donner/base/xml/XMLParser.cc:1133-1139 parses the declaration with the generic attribute loop; nothing requires version. | No consumer reads the version (grep for "version" under donner/base/xml finds only tests). | none | low | S | By code reading <?xml?> and <?xml encoding="UTF-8"?> parse. |
| feat:xml/prod-26-VersionNum | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-VersionNum | The version is 1.x; a 1.0 processor treats other 1.x numbers as 1.0 and may reject anything else. | donner/base/xml/XMLParser.cc:1137 stores the value unchecked. | No consumer. | none | low | S | By code reading version="2.0" and version="banana" are accepted. |
| feat:xml/prod-80-EncodingDecl | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-EncodingDecl | An encoding declaration names the document encoding; meeting an encoding the processor cannot handle is a fatal error. | donner/base/xml/XMLParser.cc:1141-1147 accepts only utf-8 (any letter case) and fails otherwise. | donner/base/xml/XMLParser.cc:254-274 validates the bytes as UTF-8 before the declaration is read. | donner/base/xml/tests/XMLParser_tests.cc:2439 Utf8EncodingDeclarationPreservesText; donner/base/xml/tests/XMLParser_tests.cc:2451 UnsupportedDeclaredEncodingFollowsRawByteValidation; donner/svg/parser/tests/SVGParser_tests.cc:659; resvg structure/svg/not-UTF-8-encoding.svg is skipped (donner/svg/renderer/tests/resvg_test_suite.cc:1210) | - | - | Rejecting Windows-1251, ISO-8859-1 and US-ASCII is permitted by XML. It is a usability gap for legacy ASCII-only files that declare ISO-8859-1. The [81] EncName syntax is not checked. |
| feat:xml/prod-32-SDDecl | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-SDDecl | standalone takes exactly yes or no and follows version and encoding. | donner/base/xml/XMLParser.cc:1137 stores it unchecked. | No consumer; external markup is never read, so the flag changes nothing. | none (the structured fuzzer emits it, donner/base/xml/tests/XMLParser_structured_fuzzer.cc:140) | low | S | By code reading standalone="maybe" parses. |
| feat:xml/xmldecl-order-and-whitespace | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-XMLDecl | Pseudo-attributes come in the order version, encoding, standalone, each preceded by whitespace; no others are allowed. | donner/base/xml/XMLParser.cc:1626 consumes the literal xml and donner/base/xml/XMLParser.cc:1134-1139 then accepts any attributes in any order with optional whitespace. | No consumer beyond the encoding check. | none | low | S | By code reading <?xmlversion="1.0"?>, <?xml encoding="UTF-8" version="1.0"?> and <?xml version="1.0" foo="bar"?> parse; a repeated pseudo-attribute overwrites. |
| feat:xml/prod-25-Eq | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Eq | An equals sign may have whitespace on either side. | donner/base/xml/XMLParser.cc:1791-1800. | Same. | donner/base/xml/tests/XMLParser_tests.cc:1869 ParseAttribute ("With whitespace" block) | - | - | |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/encoding-utf8 | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#charencoding | Every processor must read UTF-8; malformed byte sequences are a fatal error. | donner/base/xml/XMLParser.cc:254-274 rejects malformed, overlong, surrogate and out-of-range sequences (donner/base/Utf8.h:94-139). | donner/base/xml/XMLParser.cc:1888-1890 runs before any tree is built. | donner/base/xml/tests/XMLParser_tests.cc:2273 RawInputRejectsMalformedUtf8AcrossContexts; donner/base/xml/tests/XMLParser_tests.cc:2329; donner/base/xml/tests/XMLParser_tests.cc:2341 | - | - | |
| feat:xml/encoding-utf16 | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#charencoding | Every processor must read UTF-16; UTF-16 entities start with a byte order mark, in either byte order. | donner/base/xml/XMLParser.cc:1097-1100 knows only the UTF-8 mark; donner/base/xml/XMLParser.cc:254-274 rejects FF FE and FE FF as invalid UTF-8. | donner/svg/parser/SVGParser.cc:1022-1034 passes bytes straight to the XML parser with no transcoding step. | donner/base/xml/tests/XMLParser_tests.cc:2451 covers only a declared UTF-16 label on ASCII bytes; no test feeds UTF-16 bytes | medium | M | By code reading a UTF-16LE or UTF-16BE file fails with "Invalid UTF-8 sequence" at offset 0. Windows tools still emit UTF-16 SVG. |
| feat:xml/encoding-bom-detection | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-guessing | The byte order mark and the first bytes of the declaration identify the encoding family before the declaration is read. | donner/base/xml/XMLParser.cc:1097-1100 skips a UTF-8 mark only. | No detection of other families. | donner/base/xml/tests/XMLParser_tests.cc:2351 (UTF-8 mark accepted); donner/base/xml/tests/XMLParser_tests.cc:2439 | low | S | Covered by the UTF-16 row; the autodetection appendix is non-normative. |
| feat:xml/encoding-external-info | not-applicable | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-guessing-with-ext-info | A transport-level charset, when present, takes priority over in-document labels. | No transport layer; hosts pass bytes. | donner/base/parser/DataUrlParser.cc:52-59 drops data URL parameters such as charset. | none | - | - | Hosts own HTTP; the charset parameter of a data URL is ignored and the payload must be UTF-8. |
| feat:xml/prod-77-TextDecl-extParsedEnt | not-applicable | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-TextDecl | External parsed entities and the external subset may begin with a text declaration. | donner/base/xml/XMLParser.cc:1048-1053: external entities are never read. | None. | none | - | - | Productions [30], [31], [77], [78] apply only to external entities, which a non-validating processor may skip. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/prod-02-Char | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Char | Only tab, LF, CR, U+0020 to U+D7FF, U+E000 to U+FFFD and U+10000 to U+10FFFF may appear anywhere in a document. | donner/base/xml/XMLParser.cc:246-251 and donner/base/xml/XMLParser.cc:254-274 check every code point of the source, including ignored comments and PIs. | donner/base/xml/XMLParser.cc:1888-1890. | donner/base/xml/tests/XMLParser_tests.cc:2303 RawInputRejectsForbiddenXmlCharactersAcrossContexts; donner/base/xml/tests/XMLParser_tests.cc:2419; donner/svg/parser/tests/SVGParser_tests.cc:56 | - | - | |
| feat:xml/prod-03-S | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-S | White space is space, tab, CR and LF. | donner/base/xml/XMLParser.cc:350-363. | donner/base/xml/XMLParser.cc:600-612. | donner/base/xml/tests/XMLParser_tests.cc:1869 ParseAttribute; donner/base/xml/tests/XMLParser_tests.cc:2352 | - | - | |
| feat:xml/whitespace-handling | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-white-space | All characters that are not markup, including whitespace-only text, are passed to the application. | donner/base/xml/XMLParser.cc:1701-1711 and donner/base/xml/XMLParser.cc:1751-1758 keep whitespace-only and leading whitespace text. | donner/svg/components/text/TextSystem.cc:47 reads xml:space from the retained attribute. | donner/base/xml/tests/XMLParser_tests.cc:1945 WhitespaceOnlyDataBetweenChildrenPreserved | - | - | Each preserved whitespace run counts as a tree node, see feat:xml/limit-tree-nodes. |
| feat:xml/prod-04-NameStartChar | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-NameStartChar | A name starts with a letter, underscore, colon or one of the listed non-ASCII ranges. | donner/base/xml/XMLParser.cc:129-148; ASCII fast path donner/base/xml/XMLParser.cc:168-170. | donner/base/xml/XMLParser.cc:707-766. | donner/base/xml/tests/XMLParser_tests.cc:406; donner/base/xml/tests/XMLParser_tests.cc:3124 NameStartCharAllowsXmlRangeBoundaries; donner/base/xml/tests/XMLParser_tests.cc:3054-3068; donner/base/xml/tests/XMLParser_tests.cc:3224 | - | - | |
| feat:xml/prod-04a-NameChar | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-NameChar | Later name characters add hyphen, dot, digits, U+00B7, U+0300 to U+036F and U+203F to U+2040. | donner/base/xml/XMLParser.cc:154-164. | donner/base/xml/XMLParser.cc:742-760. | donner/base/xml/tests/XMLParser_tests.cc:435; donner/base/xml/tests/XMLParser_tests.cc:3075; donner/base/xml/tests/XMLParser_tests.cc:3186; donner/base/xml/tests/XMLParser_tests.cc:3201 NameCharAllowsXmlRangeBoundariesAfterAsciiStart | - | - | |
| feat:xml/prod-05-Name | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Name | A Name is a NameStartChar followed by NameChars. | donner/base/xml/XMLParser.cc:707-766 (no colon, for qualified names and entity names); donner/base/xml/XMLParser.cc:772-824 (with colon, for PI targets). | donner/base/xml/XMLParser.cc:1664-1682. | donner/base/xml/tests/XMLParser_tests.cc:3032 ParseQualifiedNameErrors; donner/base/xml/tests/XMLParser_tests.cc:3088; donner/base/xml/tests/XMLParser_tests.cc:3101-3117; donner/base/xml/tests/XMLParser_tests.cc:3175; donner/base/xml/tests/XMLParser_tests.cc:3231 | - | - | Element and attribute names follow the stricter Namespaces grammar, as a namespace-aware processor should. |
| feat:xml/prod-06-08-Names-Nmtokens | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Nmtoken | Names, Nmtoken and Nmtokens are the value grammars of tokenized attribute types. | grep for Nmtoken, ATTLIST, IDREF under donner/ finds nothing. | None. | none | low | M | Only reachable through attribute-list declarations, which are not processed (feat:xml/prod-52-AttlistDecl). |
| feat:xml/prod-09-EntityValue | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-EntityValue | An entity value is a quoted literal with no bare percent sign or ampersand; references inside must be well formed. | donner/base/xml/XMLParser.cc:1483-1496 takes every character up to the closing quote. | donner/base/xml/XMLParser.cc:1520-1525 expands parameter entity references and leaves everything else verbatim. | donner/base/xml/tests/XMLParser_tests.cc:2622 EntitiesCustom; donner/base/xml/tests/XMLParser_tests.cc:2158 | low | S | A bare & or % in an entity value is accepted. See also feat:xml/wfc-PEinInternalSubset. |
| feat:xml/prod-10-AttValue | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue | An attribute value is quoted with matching single or double quotes and contains no < and no bare &. | donner/base/xml/XMLParser.cc:1802-1827 requires matching quotes; donner/base/xml/XMLParser.cc:208-215 allows every character except the quote. | donner/base/xml/XMLParser.cc:1830-1837. | donner/base/xml/tests/XMLParser_tests.cc:1904 ParseAttributeErrors (quote rules); donner/base/xml/tests/XMLParser_tests.cc:3407 | low | S | Quote rules conform; the content restrictions are the two rows feat:xml/wfc-CleanAttrVals and feat:xml/prod-68-EntityRef. |
| feat:xml/prod-11-13-SystemLiteral-PubidLiteral | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-SystemLiteral | System and public identifiers are quoted literals; public identifiers use a restricted character set. | donner/base/xml/XMLParser.cc:1241-1290 scans the DOCTYPE by brackets and > without parsing its external identifier; donner/base/xml/XMLParser.cc:1478-1514 reads entity identifiers as plain quoted strings. | donner/base/xml/XMLParser.cc:1308 keeps the raw DOCTYPE text. | donner/base/xml/tests/XMLParser_tests.cc:2126 ParseDoctypePublicEntity; donner/base/xml/tests/XMLParser_tests.cc:2143; donner/base/xml/tests/XMLParser_tests.cc:2168 | low | S | No PubidChar check. By code reading a > inside a quoted DOCTYPE system literal ends the DOCTYPE early (donner/base/xml/XMLParser.cc:1266 ignores quotes). |
| feat:xml/prod-14-CharData | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-CharData | Character data contains no <, no bare &, and not the sequence ]]>. | donner/base/xml/XMLParser.cc:189-205 stops text only at <; nothing looks for ]]>. | donner/base/xml/XMLParser.cc:1000-1005 keeps a bare & as text. | donner/base/xml/tests/XMLParser_tests.cc:2497-2504 pins bare & as literal; no test for ]]> | low | S | By code reading <text>a ]]> b</text> parses with the sequence kept. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/prod-15-Comment | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Comment | A comment runs from <!-- to --> and must not contain -- or end in --->. | donner/base/xml/XMLParser.cc:1161-1165 searches for the first --> only. | donner/base/xml/XMLParser.cc:1171-1200 builds a node only when comments are enabled. | donner/base/xml/tests/XMLParser_tests.cc:2010 ParseComment; donner/base/xml/tests/XMLParser_tests.cc:2030 ParseCommentInvalid; no double-hyphen test | low | S | By code reading <!-- a -- b --> and <!-- a ---> parse. |
| feat:xml/prod-16-PI | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-PI | A PI is <?, a target name, optional whitespace-separated data, and ?>. | donner/base/xml/XMLParser.cc:1324-1361. | donner/base/xml/XMLParser.h:85: discarded unless enabled; donner/svg/parser/SVGParser.cc:1015-1020 leaves it disabled, so no SVG code ever sees a PI. | donner/base/xml/tests/XMLParser_tests.cc:2178 ParseProcessingInstructions; donner/base/xml/tests/XMLParser_tests.cc:2246 ParseProcessingInstructionsErrors; donner/base/xml/tests/XMLParser_tests.cc:1701 | - | - | Whitespace between target and data is not required (donner/base/xml/XMLParser.cc:1332), a small leniency. |
| feat:xml/prod-17-PITarget | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-PITarget | Any Name is a PI target except the three letters x, m, l in any letter case, which are reserved; names that merely begin with xml are ordinary targets. | donner/base/xml/XMLParser.cc:1624-1630: after <?, tryConsume("xml") matches any target that begins with lowercase xml and routes it to the XML declaration parser. | donner/base/xml/XMLParser.cc:1133-1152: the declaration parser then fails ("XML declaration missing closing '?>'" when the next character is not a name start, "Attribute name without value" when it is). | donner/svg/parser/tests/SVGParser_tests.cc:751 XmlStylesheetInstructionIsRejectedBeforeSvgProjection pins the failure | high | S | Inputs that fail: <?xml-stylesheet ...?>, <?xml-model ...?>, <?xmlfoo?>, at top level or inside elements, whatever the PI option is. <?XML ...?> and <?Xml ...?> are accepted as ordinary PIs although reserved. Fix: treat xml as the declaration only when followed by whitespace or ?>. |
| feat:xml/pi-placement | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-pi | PIs may appear in the prolog, after the root and inside element content. | donner/base/xml/XMLParser.cc:1632-1633 reached from the top-level loop and from element content (donner/base/xml/XMLParser.cc:1742). | Dropped by default. | donner/base/xml/tests/XMLParser_tests.cc:2198 (before root); donner/base/xml/tests/XMLParser_tests.cc:1701 (inside the root) | - | - | |
| feat:xml/prod-18-21-CDSect | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-cdata-sect | A CDATA section runs from <![CDATA[ to the first ]]>; its content is literal text with no markup recognition. | donner/base/xml/XMLParser.cc:1404-1441. | donner/svg/parser/SVGParser.cc:291-296 and text collection join CDATA with text (donner/svg/parser/tests/SVGParser_tests.cc:291, donner/svg/parser/tests/SVGParser_tests.cc:1106). | donner/base/xml/tests/XMLParser_tests.cc:1980 ParseCData; donner/base/xml/tests/XMLParser_tests.cc:1991 ParseCDataErrors; donner/svg/parser/tests/SVGParser_tests.cc:1106 TextContentSkipsCommentsAndCollectsCData | - | - | Top-level CDATA is wrongly accepted, see feat:xml/doc-content-after-root. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/prod-39-element | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-element | An element is an empty-element tag, or a start tag, content and a matching end tag. | donner/base/xml/XMLParser.cc:1550-1599. | donner/base/xml/XMLParser.cc:1687-1761. | donner/base/xml/tests/XMLParser_tests.cc:1830 ParseElement; donner/base/xml/tests/XMLParser_tests.cc:1842; donner/base/xml/tests/XMLParser_tests.cc:1998 | - | - | |
| feat:xml/prod-40-STag | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-STag | A start tag is a name, then attributes each preceded by whitespace, then optional whitespace and >. | donner/base/xml/XMLParser.cc:1568-1577; donner/base/xml/XMLParser.cc:1853 skips optional whitespace between attributes without requiring any. | donner/base/xml/XMLParser.cc:1843-1877. | donner/base/xml/tests/XMLParser_tests.cc:1842 ParseElementErrorsClosingTag; no test for missing whitespace | low | S | By code reading <rect x="1"y="2"/> parses. |
| feat:xml/prod-41-Attribute | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Attribute | An attribute is a name, an equals sign and a quoted value. | donner/base/xml/XMLParser.cc:1768-1838. | donner/base/xml/XMLParser.cc:1865-1867. | donner/base/xml/tests/XMLParser_tests.cc:1869 ParseAttribute; donner/base/xml/tests/XMLParser_tests.cc:1904 ParseAttributeErrors | - | - | |
| feat:xml/prod-42-ETag | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-ETag | An end tag is </, the name, optional whitespace and >. | donner/base/xml/XMLParser.cc:1713-1735. | Same. | donner/base/xml/tests/XMLParser_tests.cc:1842 ParseElementErrorsClosingTag; donner/base/xml/tests/XMLParser_tests.cc:3043 | - | - | |
| feat:xml/prod-43-content | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-content | Content interleaves character data with elements, references, CDATA sections, PIs and comments. | donner/base/xml/XMLParser.cc:1687-1761. | donner/base/xml/XMLParser.cc:1366-1399. | donner/base/xml/tests/XMLParser_tests.cc:1929 ParseData; donner/base/xml/tests/XMLParser_tests.cc:1945; donner/base/xml/tests/XMLParser_tests.cc:2861 | - | - | |
| feat:xml/prod-44-EmptyElemTag | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-EmptyElemTag | An empty-element tag ends with />. | donner/base/xml/XMLParser.cc:1590-1592. | Same. | donner/base/xml/tests/XMLParser_tests.cc:1830 ParseElement | - | - | |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/wfc-GIMatch | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#GIMatch | The name in an end tag must equal the name in the start tag. | donner/base/xml/XMLParser.cc:1717-1726 compares prefix and local name. | Fatal error. | donner/base/xml/tests/XMLParser_tests.cc:1861 (Mismatched closing tag); donner/svg/parser/tests/SVGParser_tests.cc:453 XmlParseErrors | - | - | |
| feat:xml/wfc-uniqattspec | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#uniqattspec | An attribute name may appear only once in a tag. | donner/base/xml/XMLParser.cc:1864-1865 calls setAttribute for each one. | donner/base/xml/components/AttributesComponent.cc:37-49 overwrites an existing entry, so the last value wins. | none | low | S | By code reading <rect fill="red" fill="green"/> renders green with no diagnostic; browsers reject the file. Each duplicate still counts toward the attribute caps. |
| feat:xml/wfc-NoExternalRefs | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NoExternalRefs | Attribute values must not reference external entities, directly or indirectly. | donner/base/xml/XMLParser.cc:1048-1053 leaves the reference text in the value. | The literal &name; reaches attribute parsers. | donner/base/xml/tests/XMLParser_tests.cc:2725 EntitiesExternalSecurity covers content only | low | S | No fetch happens, so there is no security impact; the document should be rejected. |
| feat:xml/wfc-CleanAttrVals | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#CleanAttrVals | Neither an attribute value nor the replacement text of an entity it references may contain <. | donner/base/xml/XMLParser.cc:208-229: the quoted-value predicates stop only at the quote. | Value stored with the <. | none | low | S | By code reading <text data="a<b"> parses. |
| feat:xml/wfc-Legalchar | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#wf-Legalchar | A character reference must name a character allowed by the Char production. | donner/base/xml/XMLParser.cc:277-290 and donner/base/xml/XMLParser.cc:885-897. | Fatal error. | donner/base/xml/tests/XMLParser_tests.cc:35; donner/base/xml/tests/XMLParser_tests.cc:46; donner/base/xml/tests/XMLParser_tests.cc:2521 EntitiesNumericErrors; donner/base/xml/tests/XMLParser_tests.cc:3401 | - | - | |
| feat:xml/wfc-entdeclared | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#wf-entdeclared | In a document with no DTD, with only an internal subset free of parameter entity references, or declared standalone, every referenced entity other than the five predefined ones must be declared before use. | donner/base/xml/XMLParser.cc:1054-1059 keeps an unknown reference as literal text. | The text &name; is rendered or parsed downstream. | donner/base/xml/tests/XMLParser_tests.cc:2497-2504 pin the literal behavior | low | S | When the document has an external subset (the common SVG 1.1 DOCTYPE), XML makes this a validity matter only, so literal passthrough is allowed there. Without a DTD it must be fatal. No diagnostic is emitted in either case. |
| feat:xml/wfc-textent | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#textent | An entity reference must not name an unparsed entity. | donner/base/xml/XMLParser.cc:1527-1529: an NDATA clause leaves text before >, so the declaration itself fails with "Expected '>' at end of entity declaration". | The whole parse fails at the declaration, before any reference. | donner/base/xml/tests/XMLParser_tests.cc:2705 pins the same error path for trailing junk; no NDATA test | low | S | See feat:xml/prod-76-NDataDecl: a well-formed document that merely declares an unparsed entity is rejected. |
| feat:xml/wfc-norecursion | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#norecursion | A parsed entity must not reference itself, directly or indirectly. | donner/base/xml/XMLParser.cc:1014-1026 stops expanding at depth 64 and leaves the reference text. | No error is reported. | donner/base/xml/tests/XMLParser_tests.cc:2764 EntitiesRecursionLimits; donner/base/xml/tests/XMLParser_tests.cc:3340 ParameterEntitiesRecursionLimits (both pin success) | low | S | Safe (bounded) but accepts a document XML requires rejecting; the text &name; leaks into content. |
| feat:xml/wfc-indtd | conformant-untested | https://www.w3.org/TR/2008/REC-xml-20081126/#indtd | Parameter entity references are recognized only inside the DTD. | donner/base/xml/XMLParser.cc:1067-1077: content and attribute values expand with the general-entity prefix only, so name; is plain text. | Same. | none (the test at donner/base/xml/tests/XMLParser_tests.cc:3010-3029 checks ¶m;, not param;) | - | - | |
| feat:xml/wfc-PEinInternalSubset | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#wfc-PEinInternalSubset | In the internal subset a parameter entity reference may stand only between declarations, never inside one. | donner/base/xml/XMLParser.cc:1520-1525 expands name; inside entity values in the internal subset. | The expanded value is stored. | donner/base/xml/tests/XMLParser_tests.cc:2987 ParameterEntities pins the expansion | low | S | Lenient: a document XML requires rejecting produces a result. |
| feat:xml/wfc-PE-between-Decls | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#PE-between-Decls | A parameter entity reference between declarations is replaced by its text, which must itself be a sequence of declarations. | donner/base/xml/XMLParser.cc:1241-1290 never looks for name; at declaration level. | None. | none | low | M | Declarations supplied through a parameter entity are invisible. XML 5.1 requires a non-validating processor to process internal-subset declarations up to the first parameter entity it does not read; internal ones are readable. |
| feat:xml/wfc-ExtSubset | not-applicable | https://www.w3.org/TR/2008/REC-xml-20081126/#ExtSubset | The external subset must match the extSubset production. | The external subset is never fetched. | None. | none | - | - | Allowed for a non-validating processor. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/prod-66-CharRef | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-CharRef | Character references are &# decimal digits ; or &#x hex digits ;. | donner/base/xml/XMLParser.cc:858-900. | Decoded character appended and not rescanned. | donner/base/xml/tests/XMLParser_tests.cc:2507 EntitiesNumeric; donner/base/xml/tests/XMLParser_tests.cc:2521 EntitiesNumericErrors; donner/base/xml/tests/XMLParser_tests.cc:2361 | - | - | A malformed reference (&#;, missing semicolon, non-digits) is fatal, as required. |
| feat:xml/predefined-entities | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent | amp, lt, gt, apos and quot are always recognized. | donner/base/xml/XMLParser.cc:840-856. | Same. | donner/base/xml/tests/XMLParser_tests.cc:2476 EntitiesBuiltin | - | - | Subject to the substitution cap, see feat:xml/limit-entity-substitution-count. |
| feat:xml/prod-68-EntityRef | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-EntityRef | An ampersand always begins a reference of the form &Name;; anything else is a fatal error. | donner/base/xml/XMLParser.cc:962-1005: a name without a closing semicolon, an empty name, or an invalid name falls back to literal &. | Literal text. | donner/base/xml/tests/XMLParser_tests.cc:2500-2504 and donner/base/xml/tests/XMLParser_tests.cc:3375 EntityWithNoSemicolon pin the fallback | low | S | By code reading <text>AT&T</text> parses; conforming parsers reject it. |
| feat:xml/entity-internal-general-content | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#included | A reference to an internal general entity in content is replaced by its replacement text, which is then parsed as content. | donner/base/xml/XMLParser.cc:1010-1046 splices the replacement in front of the unread source. | donner/base/xml/XMLParser.cc:1034-1042: the splice is skipped when decoded text + replacement + all unread source reaches 64 KiB. | donner/base/xml/tests/XMLParser_tests.cc:2622 EntitiesCustom; donner/base/xml/tests/XMLParser_tests.cc:2964; donner/base/xml/tests/XMLParser_tests.cc:3474 EntityContainingNode; resvg structure/svg/elements-via-ENTITY-reference-1..3 (not skipped) | high | S | Works for small documents. Because the unread source is the whole rest of the document, any reference with about 64 KiB or more of document after it stays literal. See feat:xml/limit-entity-expansion-bytes. |
| feat:xml/entity-internal-general-attvalue | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#inliteral | A reference to an internal general entity in an attribute value is replaced by its replacement text. | donner/base/xml/XMLParser.cc:1072-1077 uses the same expansion with remaining_ as the source. | donner/base/xml/XMLParser.cc:1034-1042 as above. | donner/base/xml/tests/XMLParser_tests.cc:3407 SingleQuoteAttributeWithEntity; donner/base/xml/tests/XMLParser_tests.cc:591; resvg structure/svg/attribute-value-via-ENTITY-reference.svg (not skipped) | high | S | Illustrator-style xmlns="&ns_svg;" on the root of a file larger than about 64 KiB stays literal, and donner/svg/parser/SVGParser.cc:907-927 then fails with an unexpected namespace URI. |
| feat:xml/entity-included-in-literal | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#inliteral | Inside an attribute value a quote character that comes from entity replacement text is data, not a delimiter. | donner/base/xml/XMLParser.cc:1044-1046 puts the replacement back into the source, where donner/base/xml/XMLParser.cc:208-229 sees its quote as the end of the value. | The attribute is truncated and the tag then fails to parse. | none | low | S | By code reading <!ENTITY q '"'> with font-family="a&q;b" fails. |
| feat:xml/entity-replacement-text | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#intern-replacement | When an entity is declared, character references and parameter entity references in its value are expanded and general entity references are left alone; the result is the replacement text. | donner/base/xml/XMLParser.cc:1520-1525 expands only parameter entity references at declaration time. | donner/base/xml/XMLParser.cc:946-958 decodes character references when the entity is used, into output that is not rescanned. | donner/base/xml/tests/XMLParser_tests.cc:2541-2548 and donner/base/xml/tests/XMLParser_tests.cc:2612-2619 pin use-time decoding (errors surface at the reference) | low | S | The Appendix D example (&#38; inside an entity value) yields & instead of &; a value of <rect/> yields text, not an element. |
| feat:xml/entity-wellformed-replacement | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#wf-entities | The replacement text of an internal parsed entity must itself be balanced content. | donner/base/xml/XMLParser.cc:1044-1046 splices raw text; nothing checks balance. | Tags may open in one entity and close elsewhere. | none | low | M | By code reading <!ENTITY e "</g><g>"> used inside <g> splits the element. |
| feat:xml/entity-duplicate-declaration | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-entity-decl | When an entity is declared more than once the first declaration is binding. | donner/base/xml/components/EntityDeclarationsContext.h:50-58 assigns with operator[], so the last declaration wins. | donner/base/xml/XMLParser.cc:1540-1541. | none | low | S | |
| feat:xml/entity-library-default | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#proc-types | A non-validating processor must process internal-subset entity declarations. | donner/base/xml/XMLParser.h:78: parseCustomEntities defaults to false. | donner/svg/parser/SVGParser.cc:1016 turns it on for SVG parsing. | donner/base/xml/tests/XMLParser_tests.cc:3375 (default leaves &entity unexpanded) | low | S | Affects only direct users of the XML API. |
| feat:xml/prod-69-PEReference | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-PEReference | Parameter entities are declared with <!ENTITY % name ...> and referenced as name; inside the DTD. | donner/base/xml/XMLParser.cc:1460-1464 declares them; donner/base/xml/XMLParser.cc:1520-1525 expands them inside entity values only. | Stored separately from general entities (EntityDeclarationsContext.h:86-90). | donner/base/xml/tests/XMLParser_tests.cc:2987 ParameterEntities; donner/base/xml/tests/XMLParser_tests.cc:3340 | low | M | See feat:xml/wfc-PE-between-Decls and feat:xml/wfc-PEinInternalSubset for the two placement rules, both wrong way round. |
| feat:xml/entity-external-not-fetched | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#include-if-valid | A non-validating processor may skip external parsed entities; when it does, it must tell the application that it recognized but did not read the entity. | donner/base/xml/XMLParser.cc:1478-1481 and donner/base/xml/XMLParser.cc:1540-1541 record the declaration as external. | donner/base/xml/XMLParser.cc:1048-1053 leaves &name; as literal text and reports nothing. | donner/base/xml/tests/XMLParser_tests.cc:2725 EntitiesExternalSecurity | low | S | Not fetching is the right security posture. Only the notification is missing: the literal reference text appears in rendered text with no warning. |
| feat:xml/prod-75-ExternalID | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-ExternalID | An external identifier is SYSTEM plus a literal, or PUBLIC plus two literals. | donner/base/xml/XMLParser.cc:1478-1514. | Recorded, never dereferenced. | donner/base/xml/tests/XMLParser_tests.cc:2126; donner/base/xml/tests/XMLParser_tests.cc:2143; donner/base/xml/tests/XMLParser_tests.cc:2168; donner/base/xml/tests/XMLParser_tests.cc:2685-2699 | - | - | Whitespace between the keyword and literal is optional in the code; minor leniency. |
| feat:xml/prod-76-NDataDecl | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-NDataDecl | A general entity declaration may end with NDATA name, declaring an unparsed entity. | donner/base/xml/XMLParser.cc:1500-1514 reads the identifier, then donner/base/xml/XMLParser.cc:1527-1529 requires > immediately. | Fatal error for the whole document. | none | low | S | By code reading <!ENTITY logo SYSTEM "logo.png" NDATA png> fails the parse when entity processing is on (the SVG default). |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/prod-28-doctypedecl | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-doctypedecl | The declaration is <!DOCTYPE, whitespace, the root name, an optional external identifier, an optional bracketed internal subset, and >. | donner/base/xml/XMLParser.cc:1647-1655 requires whitespace; donner/base/xml/XMLParser.cc:1241-1290 finds the end by counting brackets. | donner/base/xml/XMLParser.cc:1304-1317 keeps the raw text as a node. | donner/base/xml/tests/XMLParser_tests.cc:2037 ParseDoctype; donner/base/xml/tests/XMLParser_tests.cc:2057 ParseDoctypeNested; donner/base/xml/tests/XMLParser_tests.cc:2106; donner/base/xml/tests/XMLParser_tests.cc:2121 ParseDoctypeMalformed | low | S | No root name is required, nested and unbalanced brackets are accepted (donner/base/xml/tests/XMLParser_tests.cc:2062, donner/base/xml/tests/XMLParser_tests.cc:2122), and quotes are ignored when looking for > and ]. |
| feat:xml/prod-28a-29-intSubset | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-intSubset | The internal subset is a sequence of element, attribute-list, entity and notation declarations, PIs, comments and parameter entity references. | donner/base/xml/XMLParser.cc:1270-1287 recognizes only the text <!ENTITY; every other construct is skipped as raw characters. | Entity declarations feed expansion; nothing else has any effect. | donner/base/xml/tests/XMLParser_tests.cc:2073 ParseDoctypeDecls; donner/base/xml/tests/XMLParser_tests.cc:3427 BillionLaughs (mixes ELEMENT and ENTITY) | low | M | Because the scan is textual, <!ENTITY ...> inside a comment or PI in the subset is treated as a real declaration, and a ] inside a comment or a non-entity literal changes the bracket depth. |
| feat:xml/prod-45-elementdecl | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#elemdecls | Element type declarations constrain content models; a non-validating processor checks their syntax and otherwise ignores them. | donner/base/xml/XMLParser.cc:1241-1290 skips them unparsed. | No effect, which is correct for a non-validating processor. | donner/base/xml/tests/XMLParser_tests.cc:2073 ParseDoctypeDecls | low | S | Productions [45] to [51]. Syntax errors in them go unreported. |
| feat:xml/prod-52-AttlistDecl | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#attdecls | Attribute-list declarations give each attribute a type and a default; a non-validating processor must read those in the internal subset. | grep for ATTLIST under donner/ (excluding tests and third_party) finds nothing. | None. | none | low | M | Productions [52] to [60]. Skipped as raw text. |
| feat:xml/attlist-default-values | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-attr-defaults | An attribute with a declared default that is absent from an element is supplied with that default, including #FIXED namespace declarations. | No ATTLIST handling. | No defaulting step exists in donner/base/xml or donner/svg/parser. | none | low | M | Affects older files that rely on <!ATTLIST svg xmlns CDATA #FIXED "http://www.w3.org/2000/svg"> in the internal subset: Donner reports a missing namespace. |
| feat:xml/prod-82-NotationDecl | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#Notations | Notation declarations name the format of unparsed entities and PI targets. | donner/base/xml/XMLParser.cc:1241-1290 skips them unparsed. | No effect. | none | low | S | Useless in practice because NDATA entities cannot be declared (feat:xml/prod-76-NDataDecl). |
| feat:xml/prod-70-71-GEDecl | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#NT-GEDecl | A general entity declaration is <!ENTITY, whitespace, a name, whitespace, a value or external identifier, and >. | donner/base/xml/XMLParser.cc:1451-1545; donner/base/xml/XMLParser.cc:62-96 finds the closing > outside quotes. | donner/base/xml/XMLParser.cc:1540-1543. | donner/base/xml/tests/XMLParser_tests.cc:2622 EntitiesCustom; donner/base/xml/tests/XMLParser_tests.cc:2658; donner/base/xml/tests/XMLParser_tests.cc:2672 EntitiesCustomErrors; donner/base/xml/tests/XMLParser_tests.cc:2158 | - | - | Whitespace after the keyword and after the name is optional in the code (donner/base/xml/XMLParser.cc:1458, donner/base/xml/XMLParser.cc:1472). |
| feat:xml/prod-61-65-conditionalSect | not-applicable | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-condition-sect | Conditional sections may appear only in the external subset. | The external subset is never read. | None. | none | - | - | |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/eol-crlf | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends | Before parsing, each CR LF pair becomes a single LF. | grep for \r in donner/base/xml/XMLParser.cc finds only the whitespace test at donner/base/xml/XMLParser.cc:362; no translation pass exists. | donner/svg/components/text/TextSystem.cc:60-71 folds CR LF for SVG text layout only. | none (donner/base/xml/tests/XMLParser_tests.cc:2389 checks byte offsets across newline styles, not content) | low | S | Attribute values, <style> text, <title> and DOM reads keep the CR. |
| feat:xml/eol-lone-cr | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends | A CR not followed by LF becomes LF. | Same as above. | Same as above. | none | low | S | A literal CR and a reference are indistinguishable downstream, although XML keeps only the latter as CR. |
| feat:xml/avn-charref-append | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#AVNormalize | During attribute-value normalization a character reference appends the referenced character without rescanning. | donner/base/xml/XMLParser.cc:946-958. | Same. | donner/base/xml/tests/XMLParser_tests.cc:2606 (attribute context); donner/base/xml/tests/XMLParser_tests.cc:591 ApplySourceEditReparsesAttributeEntities | - | - | |
| feat:xml/avn-entityref-recursive | partial | https://www.w3.org/TR/2008/REC-xml-20081126/#AVNormalize | An entity reference in an attribute value is replaced by recursively normalizing its replacement text. | donner/base/xml/XMLParser.cc:1044-1046. | Same. | donner/base/xml/tests/XMLParser_tests.cc:3407 | high | S | Same defects as feat:xml/entity-internal-general-attvalue and feat:xml/entity-included-in-literal. |
| feat:xml/avn-whitespace-to-space | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#AVNormalize | Each literal tab, LF and CR in an attribute value becomes a space. | donner/base/xml/XMLParser.cc:1830-1837 stores the value as decoded, with no whitespace mapping. | donner/base/xml/XMLEscape.cc:138-142 escapes these characters on output on the stated assumption that parsing normalizes them. | none | low | S | Numeric microsyntaxes treat all four as separators, so rendering rarely changes. String attributes (id, class, font-family) and DOM reads differ from browsers. |
| feat:xml/avn-non-cdata-trim | missing | https://www.w3.org/TR/2008/REC-xml-20081126/#AVNormalize | For attributes declared with a tokenized or enumerated type, leading and trailing spaces are dropped and runs collapse. | No attribute types are known. | None. | none | low | M | Depends on feat:xml/prod-52-AttlistDecl. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml/limit-entity-expansion-bytes | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-entexpand | Declared internal entities are expanded wherever referenced; XML sets no size limit, and the SVG media type registration only warns about expansion attacks. | donner/base/xml/XMLParser.cc:47 sets 64 KiB; donner/base/xml/XMLParser.cc:1034-1035 computes decodedText.size() + replacement.size() + sourceString.size() - entPos - 1. | donner/base/xml/XMLParser.cc:1067-1077: for content and attribute values sourceString is remaining_, every unread byte of the document. donner/base/xml/XMLParser.cc:1037-1042 leaves the reference literal when the sum reaches 65536. | donner/base/xml/tests/XMLParser_tests.cc:2816 OversizedCustomEntityExpansionRemainsLiteral (70 KiB entity value only); donner/base/xml/tests/XMLParser_tests.cc:3427; no test with a small entity in a large document | high | S | Arithmetic: a 10-byte entity referenced with 70,000 bytes of document after it gives 0 + 10 + 70,000 = 70,010, over the limit, so it is not expanded. The check does not reject the document; the reference silently stays as &name;. Fix: measure expanded output, not unread input. |
| feat:xml/limit-entity-substitution-count | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-predefined-ent | Predefined entities and character references are always legal and cannot amplify input. | donner/base/xml/XMLParser.cc:946-954 calls recordEntitySubstitution for every predefined and numeric reference; donner/base/xml/XMLParser.cc:533-541 fails once the count reaches the limit. | donner/base/xml/XMLParser.h:104 default 1,000 per document; donner/svg/parser/SVGParser.cc:1015-1020 does not raise it. | donner/base/xml/tests/XMLParser_tests.cc:2808 BuiltInEntitySubstitutionLimitExceeded; donner/base/xml/tests/XMLParser_tests.cc:2793 | high | S | Arithmetic: the counter is one per document, so the 1,001st &, <, - and so on is a fatal "Entity substitution limit exceeded". Graphviz output and escaped non-ASCII text exceed this. These references do not count toward the 64 KiB byte budget, only toward this count. |
| feat:xml/limit-entity-depth | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | Processors should defend against repeated expansion of malicious entities. | donner/base/xml/XMLParser.h:97 depth 64; donner/base/xml/XMLParser.cc:1014-1026. | Reference left literal past the limit. | donner/base/xml/tests/XMLParser_tests.cc:2764; donner/base/xml/tests/XMLParser_tests.cc:3427 BillionLaughs; fuzzers donner/base/xml/tests/XMLParser_fuzzer.cc | - | - | An intentional safety bound; no realistic document nests 64 deep. |
| feat:xml/limit-entity-declarations | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | As above. | donner/base/xml/XMLParser.h:126-129: 1,024 declarations and 1 MiB of names plus values; donner/base/xml/XMLParser.cc:1531-1535. | Fatal error past the limit. | donner/base/xml/tests/XMLParser_tests.cc:2917 MaxEntityDeclarationCountExceeded; donner/base/xml/tests/XMLParser_tests.cc:2928 | - | - | Intentional safety bound. |
| feat:xml/limit-tree-nodes | divergent | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-well-formed | XML places no limit on the number of elements or text nodes. | donner/base/xml/XMLParser.cc:1604-1610 counts every element, text, CDATA, comment, DOCTYPE, PI and declaration node; donner/base/xml/XMLParser.cc:1378 counts each text run, including the whitespace-only runs kept by donner/base/xml/XMLParser.cc:1701-1711. | donner/svg/parser/SVGParser.cc:1018 sets the limit to maximumTreeNodes, default 8,192 (donner/svg/parser/SVGParser.h:36); donner/svg/parser/SVGParser.cc:852-860 applies the same cap again during projection. | donner/base/xml/tests/XMLParser_tests.cc:2831; donner/base/xml/tests/XMLParser_tests.cc:2845; donner/base/xml/tests/XMLParser_tests.cc:2861 MaxElementsLimitAppliesToDataSplitByIgnoredComments; donner/svg/parser/tests/SVGParser_tests.cc:985 | high | S | Arithmetic: a pretty-printed file has one whitespace text node per element, so about 4,095 elements reach 8,192 nodes and the parse fails with "Maximum element count exceeded". Maps, plots and icon sheets pass that easily. Callers can raise the option; the default rejects legitimate documents. Intentional bound, documented in the option comment. |
| feat:xml/limit-structural-other | conformant | https://www.w3.org/TR/2008/REC-xml-20081126/#sec-well-formed | No limits in XML; these are safety bounds. | donner/base/xml/XMLParser.h:46 input 16 MiB; donner/base/xml/XMLParser.h:120 1,000 attributes per element; donner/base/xml/XMLParser.h:123 100,000 attributes; donner/base/xml/XMLParser.h:138 depth 256. | donner/base/xml/XMLParser.cc:1580-1582, donner/base/xml/XMLParser.cc:1856-1861, donner/base/xml/XMLParser.cc:1884-1886. | donner/base/xml/tests/XMLParser_tests.cc:27; donner/base/xml/tests/XMLParser_tests.cc:2883; donner/base/xml/tests/XMLParser_tests.cc:2908; donner/base/xml/tests/XMLParser_tests.cc:2936 | - | - | Generous enough for real content; intentional. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml-names/prefix-declaration-and-scope | conformant | https://www.w3.org/TR/2009/REC-xml-names-20091208/#scoping | An xmlns:prefix attribute binds the prefix for the element that carries it and all descendants, unless a descendant rebinds it. | donner/base/xml/components/XMLNamespaceContext.h:66-75 records the declaration per element; donner/base/xml/components/AttributesComponent.cc:57-66 routes xmlns attributes there. | donner/base/xml/components/XMLNamespaceContext.h:113-133 and donner/base/xml/components/XMLNamespaceContext.h:291-316 layer each element over its ancestors; donner/svg/parser/SVGParser.cc:824-826 and donner/svg/parser/SVGParser.cc:573-575 use the result. | donner/base/xml/tests/XMLParser_tests.cc:1809 Namespace; donner/svg/parser/tests/SVGParser_tests.cc:573 PrefixedXmlns; donner/svg/parser/tests/SVGParser_tests.cc:597 MismatchedNamespace; donner/svg/parser/tests/SVGParser_tests.cc:795 | - | - | |
| feat:xml-names/default-namespace | conformant | https://www.w3.org/TR/2009/REC-xml-names-20091208/#defaulting | An xmlns attribute sets the namespace of unprefixed element names in its scope; it never applies to attributes. | donner/base/xml/components/XMLNamespaceContext.h:181-183 maps xmlns to the empty prefix. | donner/svg/parser/SVGParser.cc:825 resolves an unprefixed tag through the empty prefix; donner/svg/parser/SVGParser.cc:571 never resolves unprefixed attributes. | donner/svg/parser/tests/SVGParser_tests.cc:45 Simple; donner/svg/parser/tests/SVGParser_tests.cc:119 WithoutNamespace; donner/svg/parser/tests/SVGParser_tests.cc:523 InvalidXmlns; resvg structure/svg/explicit-svg-namespace.svg | - | - | |
| feat:xml-names/default-namespace-undeclare | conformant-untested | https://www.w3.org/TR/2009/REC-xml-names-20091208/#defaulting | xmlns="" removes the default namespace for its scope. | donner/base/xml/components/XMLNamespaceContext.h:73 stores the empty string. | donner/svg/parser/SVGParser.cc:825-826: the empty string is not the SVG namespace, so the element is treated as foreign. | none | - | - | By code reading. |
| feat:xml-names/nsc-NoPrefixUndecl | divergent | https://www.w3.org/TR/2009/REC-xml-names-20091208/#nsc-NoPrefixUndecl | In Namespaces 1.0 a prefixed declaration must not have an empty value. | donner/base/xml/components/XMLNamespaceContext.h:66-75 accepts any value. | The prefix then resolves to an empty namespace name. | none | low | S | Not reported. |
| feat:xml-names/nsc-NSDeclared | partial | https://www.w3.org/TR/2009/REC-xml-names-20091208/#nsc-NSDeclared | Every prefix other than xml and xmlns must be declared in scope; a conforming processor reports violations. | The XML layer does not check (donner/base/xml/XMLParser.cc:1664-1682). | donner/svg/parser/SVGParser.cc:824-836 warns and keeps an element with an unbound prefix as unknown; donner/svg/parser/SVGParser.cc:586-591 warns for an unbound attribute prefix; donner/svg/parser/SVGParser.cc:571-572 exempts the literal prefix xlink from any check. | donner/svg/parser/tests/SVGParser_tests.cc:597-650 MismatchedNamespace (warnings for <path> and invalid:d); donner/svg/parser/tests/SVGParser_tests.cc:322 | low | S | Reported as warnings, which satisfies "report". Exceptions: xlink:href with no declaration is honored silently, and nothing is reported when warnings are disabled or through the XML API. |
| feat:xml-names/xmlReserved | divergent | https://www.w3.org/TR/2009/REC-xml-names-20091208/#xmlReserved | The prefix xml is always bound to the XML namespace and may not be bound to anything else; xmlns may not be declared; no other prefix may be bound to either reserved name. | donner/base/xml/components/XMLNamespaceContext.h:66-75 accepts xmlns:xml="anything" and xmlns:xmlns="..."; there is no built-in binding for xml (donner/base/xml/components/XMLNamespaceContext.h:113-133 returns nothing unless declared). | donner/svg/parser/SVGParser.cc:586 special-cases the literal prefix xml to suppress the warning; donner/svg/components/text/TextSystem.cc:47 matches xml:space by literal prefix. | donner/svg/parser/tests/SVGParser_tests.cc:396 XmlPrefixedAttributesAreRetainedWithoutDiagnostics (literal prefix only) | low | S | A document that binds another prefix to the XML namespace (xmlns:x="http://www.w3.org/XML/1998/namespace" x:space="preserve") is not honored. |
| feat:xml-names/nsc-AttrsUnique | divergent | https://www.w3.org/TR/2009/REC-xml-names-20091208/#nsc-AttrsUnique | No element may have two attributes with the same local name whose prefixes are bound to the same namespace. | No check; grep for a uniqueness test after expansion in donner/base/xml finds none. | Both attributes are kept under their literal names. | none | low | S | |
| feat:xml-names/qname-syntax | conformant | https://www.w3.org/TR/2009/REC-xml-names-20091208/#ns-qualnames | A qualified name is an NCName or two NCNames joined by exactly one colon; neither part may be empty. | donner/base/xml/XMLParser.cc:1664-1682; donner/base/xml/XMLParser.cc:707-766 excludes the colon from each part. | Same. | donner/base/xml/tests/XMLParser_tests.cc:3032 ParseQualifiedNameErrors | - | - | By code reading a second colon (a:b:c) fails at the next tag-syntax check. |
| feat:xml-names/no-colon-in-other-names | divergent | https://www.w3.org/TR/2009/REC-xml-names-20091208/#Conformance | In a namespace-well-formed document, entity names, PI targets and notation names contain no colon. | donner/base/xml/XMLParser.cc:772-824 allows colons in PI targets; donner/base/xml/XMLParser.cc:1467 uses the colon-free name for entities. | PI node keeps the colon name. | donner/base/xml/tests/XMLParser_tests.cc:2198 and donner/base/xml/tests/XMLParser_tests.cc:2210 pin colon PI targets as accepted | low | S | Entity names conform; PI targets do not. |
| feat:xml-names/unprefixed-attributes-no-namespace | conformant | https://www.w3.org/TR/2009/REC-xml-names-20091208/#defaulting | An unprefixed attribute is in no namespace, whatever the default namespace is. | donner/svg/parser/SVGParser.cc:571: only prefixed attributes are resolved. | donner/svg/parser/AttributeParser.cc:452 and peers compare against unprefixed names; donner/svg/SVGElement.cc:783 applies presentation attributes only when the prefix is empty. | donner/svg/parser/tests/SVGParser_tests.cc:410 Attributes; donner/svg/parser/tests/SVGParser_tests.cc:536 DoubleXmlNs (svg:id is stored under its prefixed name) | - | - | A prefixed attribute bound to the SVG namespace (svg:d) is retained but not interpreted, which matches SVG: its attributes are in no namespace. donner/svg/parser/tests/SVGParser_tests.cc:585 parses that case but does not assert the non-interpretation. |
| feat:xml-names/foreign-attributes | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ForeignNamespaces | Attributes from other namespaces stay in the DOM and are otherwise ignored. | donner/svg/parser/SVGParser.cc:571-593. | Retained in the XML tree; no SVG interpretation. | donner/svg/parser/tests/SVGParser_tests.cc:362 DeclaredForeignNamespaceAttributesAreRetainedWithoutDiagnostics; donner/svg/parser/tests/SVGParser_tests.cc:378; donner/svg/parser/tests/SVGParser_tests.cc:1349 | - | - | |
| feat:xml-names/svg-element-matching | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#Namespace | An element is an SVG element when its expanded name is in the SVG namespace, whatever prefix is used. | donner/svg/parser/SVGParser.cc:824-826 resolves the tag prefix to a namespace name and compares it with the SVG namespace. | donner/svg/parser/SVGParser.cc:778-796 looks up the local name only for SVG-namespace elements; donner/svg/parser/SVGParser.cc:903-928 applies the same test to the root. | donner/svg/parser/tests/SVGParser_tests.cc:573 PrefixedXmlns; donner/svg/parser/tests/SVGParser_tests.cc:536 DoubleXmlNs; donner/svg/parser/tests/SVGParser_tests.cc:670 UnknownElementInSvgNamespace; donner/svg/parser/tests/SVGParser_tests.cc:907; resvg structure/svg/explicit-svg-namespace.svg | - | - | Matching is by namespace name plus local name, not by local name alone. parseAsInlineSVG (donner/svg/parser/SVGParser.cc:909-911, donner/svg/parser/tests/SVGParser_tests.cc:130) defaults a missing root namespace, an extension for HTML-embedded fragments. |
| feat:xml-names/foreign-elements | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ForeignNamespaces | Elements from other namespaces are kept in the DOM and excluded from rendering. | donner/svg/parser/SVGParser.cc:886-900. | donner/svg/parser/SVGParser.cc:793-795 creates an unknown element flagged as not in the SVG namespace; donner/svg/graph/Reference.cc:22-28 refuses to resolve references to it. | donner/svg/parser/tests/SVGParser_tests.cc:682 ForeignNamespaceElementsAreRetainedAsUnknown; donner/svg/parser/tests/SVGParser_tests.cc:760; donner/svg/parser/tests/SVGParser_tests.cc:322; resvg structure/svg/rect-inside-a-non-SVG-element.svg and structure/use/xlink-to-a-child-of-a-non-SVG-element.svg (not skipped) | - | - | |
| feat:xml-names/xlink-namespace-matching | divergent | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkRefAttrs | The legacy href is the attribute named href in the XLink namespace, under whatever prefix is bound to it; an explicit XLink namespace declaration is required. | donner/svg/parser/SVGParser.cc:571-572 skips namespace resolution for the literal prefix xlink; donner/svg/parser/AttributeParser.cc:452, 561, 1069, 1466, 1569, 1775, 2003, 2161 match XMLQualifiedNameRef("xlink", "href"). | donner/svg/parser/SVGParser.cc:581-585 warns that an attribute bound to XLink under another prefix is not interpreted. | donner/svg/parser/tests/SVGParser_tests.cc:340 XLinkAttributeUnderAnotherPrefixWarnsThatItIsNotInterpreted pins it; resvg structure/svg/mixed-namespaces.svg passes only because <a> does not change rendering | medium | S | Two defects: xl:href bound to XLink is ignored (some exporters use other prefixes), and xlink:href with the prefix unbound or bound to a different namespace is honored. |
| feat:xml-names/namespace-name-comparison | conformant | https://www.w3.org/TR/2009/REC-xml-names-20091208/#NSNameComparison | Namespace names are compared as exact strings, with no normalization. | donner/svg/parser/SVGParser.cc:826 and donner/svg/parser/SVGParser.cc:908 use string equality. | Same. | donner/svg/parser/tests/SVGParser_tests.cc:523 InvalidXmlns; donner/svg/parser/tests/SVGParser_tests.cc:897 | - | - | |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xml-stylesheet/pi-recognition | divergent | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#the-xml-stylesheet-processing-instruction | A PI with target xml-stylesheet in the prolog is a candidate style sheet link; it is well-formed XML and must at least be parsed. | donner/base/xml/XMLParser.cc:1624-1630 consumes the leading xml of the target and calls the XML declaration parser. | donner/base/xml/XMLParser.cc:1133-1152: -stylesheet is not an attribute, so the parser demands ?> and fails with "XML declaration missing closing '?>'". | donner/svg/parser/tests/SVGParser_tests.cc:751 XmlStylesheetInstructionIsRejectedBeforeSvgProjection pins the fatal error | high | S | Trigger: any document containing <?xml-stylesheet anywhere a node may start (prolog, after the root, or inside an element), with any pseudo-attributes, including the common type="text/css" form. The PI option does not matter. Inside a DOCTYPE internal subset it is skipped as raw text and does not fail. Inkscape and many hand-written files carry this PI. |
| feat:xml-stylesheet/pseudo-attribute-parsing | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#pseudo-attributes | PI data is parsed as name="value" pairs with character and predefined entity references; duplicates or malformed data make the PI an error to be ignored. | grep for xml-stylesheet under donner/ (excluding tests) finds nothing. | None. | none | medium | S | Never reached: the PI fails earlier. |
| feat:xml-stylesheet/pa-href | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#PA-href | Required address of the style sheet, an IRI reference resolved against the document. | None. | None. | none | medium | M | Blocked by feat:xml-stylesheet/pi-recognition. Applying the sheet belongs to the styling ledgers; the external-fetch plumbing exists for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc). |
| feat:xml-stylesheet/pa-type | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#PA-type | Advisory media type of the style sheet; an SVG user agent applies text/css and ignores types it does not support. | None. | None. | none | medium | S | Blocked by feat:xml-stylesheet/pi-recognition. Applying the sheet belongs to the styling ledgers; the external-fetch plumbing exists for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc). |
| feat:xml-stylesheet/pa-title | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#PA-title | Names the style sheet for style sheet sets. | None. | None. | none | low | S | Blocked by feat:xml-stylesheet/pi-recognition. Applying the sheet belongs to the styling ledgers; the external-fetch plumbing exists for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc). |
| feat:xml-stylesheet/pa-media | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#PA-media | Media query list for which the sheet applies. | None. | None. | none | low | S | Blocked by feat:xml-stylesheet/pi-recognition. Applying the sheet belongs to the styling ledgers; the external-fetch plumbing exists for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc). |
| feat:xml-stylesheet/pa-charset | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#PA-charset | Advisory character encoding of the sheet. | None. | None. | none | low | S | Blocked by feat:xml-stylesheet/pi-recognition. Applying the sheet belongs to the styling ledgers; the external-fetch plumbing exists for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc). |
| feat:xml-stylesheet/pa-alternate | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#PA-alternate | yes marks an alternative sheet (title then required); no or absent marks a persistent or preferred one. | None. | None. | none | low | S | Blocked by feat:xml-stylesheet/pi-recognition. Applying the sheet belongs to the styling ledgers; the external-fetch plumbing exists for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc). |
| feat:xml-stylesheet/processing-order | missing | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#the-xml-stylesheet-processing-instruction | Linked sheets take effect in document order, after any links supplied outside the document; alternates are selectable. | None. | None. | none | low | M | No external style sheet association exists other than CSS @import. |
| feat:xml-stylesheet/pi-in-doctype | conformant-untested | https://www.w3.org/TR/2010/REC-xml-stylesheet-20101028/#the-xml-stylesheet-processing-instruction | A candidate PI inside the document type declaration may be ignored. | donner/base/xml/XMLParser.cc:1241-1290 skips it as raw subset text. | Ignored. | none | - | - | By code reading. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xmlbase/xml-base-attribute | spec-ambiguity | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-absolute | The linking chapter says relative URLs in non-presentation attributes of XML documents are made absolute as described in XML Base; the changes appendix says the xml:base attribute was removed from SVG 2. | grep for xml:base and "base" under donner/svg finds nothing. | No base override exists. | none | low | M | The CR contradicts itself (linking.html keeps the rule, changes.html lists the removal, struct.html no longer defines the attribute). Donner follows the removal. Worth raising with the working group. |
| feat:xmlbase/document-base-url | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-absolute | A relative URL is resolved against the document base URL before use. | donner/svg/resources/UrlReference.cc:194-227 implements RFC 3986 resolution, used only for CSS @import (donner/svg/components/resources/StylesheetImportLoader.cc:32, 121). | donner/svg/resources/UrlLoader.cc:101-124 hands every other href to the host loader unresolved; donner/svg/resources/SandboxedFileResourceLoader.cc:289-307 treats it as a file path under the document directory. | donner/svg/resources/tests/UrlReference_tests.cc:17-95; donner/svg/resources/tests/SandboxedFileResourceLoader_tests.cc | low | M | There is no document URL in the API. The bundled loader does no percent-decoding, has no file: scheme handling and keeps ?query in the path. A document inside a nested sub-document resolves against whatever the host loader decides. |
| feat:xml-id/xml-id-attribute | not-applicable | https://www.w3.org/TR/2005/REC-xml-id-20050909/ | xml:id marks an attribute as an ID without a DTD. | The SVG 2 CR chapters read for this ledger (struct, linking, conform, changes) do not mention xml:id; searched the pages for the string. | donner/svg/parser/SVGParser.cc:586-592 retains xml:id like any other xml: attribute; it is not used for reference resolution. | none | - | - | SVG 2 uses the no-namespace id attribute only. |
| feat:svg2-conform/id-valid-xml-name | not-applicable | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGXMLFragments | For a document to be XML-compatible its id values must be valid XML IDs; this is a document conformance rule. | donner/svg/SVGElement.cc:109-110 stores any string. | Reference lookup is by exact string. | resvg structure/svg/invalid-id-attribute-1.svg and -2.svg run as undefined behavior (donner/svg/renderer/tests/resvg_test_suite.cc:1205-1206) | - | - | A user agent is not required to reject such ids. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:xlink/href-recognized | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkHrefAttribute | Every element with an href attribute also accepts href in the XLink namespace. | donner/svg/parser/AttributeParser.cc:452 (gradients), 561 (filter), 1069 (feImage), 1466 (image), 1569 (pattern), 1775 (use), 2003 (a), 2161 (textPath); animation elements read it at donner/svg/components/animation/AnimationSystem.cc:280. | Each sets the same component field as plain href. | donner/svg/tests/SVGImageElement_tests.cc:105; donner/svg/tests/SVGTextPathElement_tests.cc:149-160; donner/svg/tests/SVGAElement_tests.cc:44; resvg paint-servers/linearGradient/attributes-via-xlink-href.svg, paint-servers/pattern/everything-via-xlink-href.svg | - | - | Matched by literal prefix, see feat:xml-names/xlink-namespace-matching. |
| feat:xlink/href-precedence#1 | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkHrefAttribute | When both href and xlink:href are present, the plain href is used and the XLink one is ignored. (use and the animation elements.) | donner/svg/parser/AttributeParser.cc:1775-1778 defers to the shared attribute write. | donner/svg/UseReference.cc:26-31 reads href first and falls back to xlink:href; donner/svg/components/animation/AnimationSystem.cc:278-281 does the same. | donner/svg/tests/SVGUseElement_tests.cc:164-165 (both orders); donner/svg/parser/tests/AnimateElement_tests.cc:552; donner/svg/parser/tests/SetElement_tests.cc:136 | - | - | |
| feat:xlink/href-precedence#2 | divergent | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkHrefAttribute | Same rule, for linearGradient, radialGradient, pattern, image, feImage, a, textPath (and filter, which Donner also gives an href). | donner/svg/parser/SVGParser.cc:568-600 applies attributes in the order of the attribute map, which sorts by local name and then prefix (donner/base/xml/XMLQualifiedName.h:236-242), so href is applied before xlink:href. | donner/svg/parser/AttributeParser.cc:452-453, 561-562, 1069-1073, 1466-1467, 1569-1570, 2003-2004, 2161-2162 each call the same setter for both names, so the later xlink:href overwrites href. | none for these elements (searched donner/svg tests and the resvg suite for an element carrying both attributes; only use and animation tests exist) | medium | S | By code reading <linearGradient href="#a" xlink:href="#b"> inherits from b; the CR requires a. Dual attributes are what generators emit for backwards compatibility, usually with equal values, which hides the bug. Precedence is not implemented generally: it is implemented for use and animation only. |
| feat:xlink/title | missing | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkTitleAttribute | Deprecated xlink:title describes a link; a title child element is preferred. | grep for "title" with the xlink prefix under donner/svg finds nothing. | Retained as a raw attribute. | none | low | S | Descriptive only; no rendering effect. Relevant to accessibility output, which Donner does not produce. |
| feat:xlink/removed-attributes | not-applicable | https://www.w3.org/TR/2026/CR-SVG2-20261006/changes.html | The CR removed xlink:type, role, arcrole, show and actuate. | Not interpreted (same grep). | Retained as raw attributes. | none | - | - | Removed items are not gaps. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:svg2-linking/same-document-fragment | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#TermSameDocumentURL | A fragment-only URL refers to the element with that id in the current document. | donner/svg/graph/Reference.cc:97-106. | donner/svg/components/AttachedIdLookup.h lookup via donner/svg/graph/Reference.cc:22-28; consumers at donner/svg/components/paint/PaintSystem.cc:329, donner/svg/components/paint/PaintSystem.cc:373, donner/svg/components/text/TextSystem.cc:177, donner/svg/renderer/RenderingContext.cc:1483-1503. | donner/svg/graph/tests/Reference_tests.cc:11 SameDocumentFragment; resvg structure/use/href-without-the-xlink-namespace.svg | - | - | The id is compared as written: no percent-decoding and no whitespace trimming, see the next two rows. |
| feat:svg2-linking/same-document-by-url-compare | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-absolute | A URL whose non-fragment part equals the document base URL is also a same-document reference. | donner/svg/graph/Reference.cc:33-51 classifies anything not starting with # or data: as external. | donner/svg/renderer/RenderingContext.cc:1598-1608 then tries to load it as an external document. | donner/svg/graph/tests/Reference_tests.cc:18 ExternalWithFragment | low | M | Without a document URL the comparison cannot be made. self.svg#a inside self.svg loads the file again as a read-only sub-document (for use) or fails (for paint servers). |
| feat:svg2-linking/url-parsing-fragment | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-absolute | The URL is parsed to split off the fragment; URL parsing strips surrounding whitespace and percent-decodes the fragment for id matching. | donner/svg/graph/Reference.cc:13-20 and donner/svg/graph/Reference.cc:79-96 split at the first #. | The fragment is used verbatim as the id. | donner/svg/graph/tests/Reference_tests.cc:25-67 | low | S | By code reading href=" #a", href="#a%20b" (for id "a b") do not resolve. Browsers resolve both. |
| feat:svg2-linking/external-references-by-element | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-fetch | Any href or style-property URL may reference another document, which should be fetched, except animation element hrefs (same-document only) and anything in a secure mode. | donner/svg/graph/Reference.cc:97-106 resolves only #id. | External documents are loaded for use (donner/svg/renderer/RenderingContext.cc:1598-1608), image and feImage (donner/svg/components/resources/ResourceManagerContext.cc:524-553), fonts and CSS @import. Gradient and pattern hrefs, textPath, and url() in fill, stroke, marker, clip-path, mask and filter never leave the document. | donner/svg/renderer/tests/Renderer_tests.cc:461 UseExternalSvg, :443 ImageExternalSvgBasic, :432 FeImageExternalSvg; resvg structure/use/xlink-to-an-external-file.svg is compared against a Donner golden (harness mismatch: its reference is opaque and its glyph ink is about 5.6% heavier) | low | L | Fetching is a should. Browsers also restrict most of these to same-document. Animation hrefs are correctly same-document only (donner/svg/components/animation/AnimationBaseValue.cc:251). |
| feat:svg2-linking/secure-mode-restrictions | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-fetch | In secure static and secure animated modes external file references fail as if by network error; data URLs still work. | donner/svg/components/resources/ResourceManagerContext.cc:524-531 and donner/svg/components/resources/ResourceManagerContext.cc:567-572 substitute a null loader or return early in secure modes; donner/svg/components/resources/ResourceManagerContext.cc:443 refuses @import. | donner/svg/components/resources/ResourceManagerContext.cc:767-771 blocks already-loaded external images; data URLs bypass the loader (donner/svg/resources/UrlLoader.cc:163-164). | donner/svg/parser/tests/SVGParser_tests.cc:1144 SecureStaticModeParsesDataSubDocuments; donner/svg/resources/tests/ImageLoader_tests.cc:123; donner/svg/components/resources/tests/SubDocumentCache_tests.cc | - | - | Donner has three modes (dynamic interactive, secure animated, secure static); the two non-secure reduced modes of the CR are a conformance-chapter matter outside this ledger. |
| feat:svg2-linking/subresource-processing | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-parsing | A fetched sub-document is parsed in secure static mode and is read-only; parsed documents may be cached. | donner/svg/parser/SVGParser.cc:994-1009 parses sub-documents with ProcessingMode::SecureStatic. | donner/svg/components/resources/ResourceManagerContext.cc:583-603 caches by URL (donner/svg/components/resources/SubDocumentCache.cc). | donner/svg/parser/tests/SVGParser_tests.cc:1123 SubDocumentParseErrorsReportedAsWarnings; donner/svg/parser/tests/SVGParser_tests.cc:1365; donner/svg/components/resources/tests/SubDocumentCache_tests.cc | - | - | |
| feat:svg2-linking/target-identification | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-target | With a fragment the target is the element with that id; without one it is the root element; a missing target in a static document is an invalid reference. | donner/svg/graph/Reference.cc:108-118; donner/svg/renderer/RenderingContext.cc:1603-1607 keeps the fragment for external use. | donner/svg/renderer/RenderingContext.cc:1609-1614 warns when a local target is missing. | resvg structure/use/* (not skipped), paint-servers/linearGradient/unresolved-xlink-href.svg | - | - | |
| feat:svg2-linking/valid-target-use | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | use must reference an element in the SVG namespace. | donner/svg/graph/Reference.cc:22-28 rejects a target not in the SVG namespace. | donner/svg/components/shadow/ShadowTreeSystem.cc builds the instance. | resvg structure/use/xlink-to-a-child-of-a-non-SVG-element.svg, xlink-to-an-invalid-element-1..3.svg (not skipped) | - | - | |
| feat:svg2-linking/valid-target-gradients | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | A gradient href must reference a different linear or radial gradient; anything else is an invalid reference. | donner/svg/components/paint/PaintSystem.cc:329-349 requires a gradient component on the target and warns otherwise. | donner/svg/components/paint/PaintSystem.cc:266-290 walks the chain. | resvg paint-servers/linearGradient/attributes-via-xlink-href-from-rect.svg, invalid-xlink-href.svg, attributes-via-xlink-href-from-radialGradient.svg (not skipped) | - | - | |
| feat:svg2-linking/valid-target-pattern | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | A pattern href must reference another pattern. | donner/svg/components/paint/PaintSystem.cc:373-390. | Same. | resvg paint-servers/pattern/attributes-via-xlink-href.svg, children-via-xlink-href.svg; everything-via-xlink-href.svg (donner/svg/renderer/tests/resvg_test_suite.cc:477) | - | - | |
| feat:svg2-linking/valid-target-textPath | conformant-untested | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | A textPath href must reference a geometry element (path or basic shape). | donner/svg/components/text/TextSystem.cc:165-200 accepts a target with a computed or authored path. | Other targets yield no path, so the text is not rendered. | donner/svg/tests/SVGTextPathElement_tests.cc:149 (path target); no test found for a non-geometry target | - | - | Whether basic shapes work depends on the shape path being computed first; unverified here, belongs to the text ledger. |
| feat:svg2-linking/valid-target-image | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | An image href must reference a document that can be processed as an image; the whole document is the resource. | donner/svg/resources/ImageLoader.cc:227-241 routes SVG to a sub-document and everything else to the raster decoder. | donner/svg/resources/ImageLoader.cc:140-150 rejects other media types. | donner/svg/resources/tests/ImageLoader_tests.cc:102, :123, :139; resvg structure/image/* (embedded-svg.svg, url-to-png.svg and peers) | - | - | |
| feat:svg2-linking/valid-target-script | not-applicable | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | A script href must reference a script resource. | Donner never loads or runs scripts (donner/svg/core/ProcessingMode.h:15-16). | None. | donner/svg/parser/tests/SVGParser_tests.cc:720 BrowserActiveMarkupIsInertInProjectionButRetainedInSource | - | - | No script execution by design. |
| feat:svg2-linking/valid-target-a | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | An a element may reference any resource; it is resolved only on activation. | donner/svg/parser/AttributeParser.cc:2003-2004 stores the string. | Never dereferenced; hosts handle navigation. | donner/svg/tests/SVGAElement_tests.cc:44 | - | - | Link activation and nested-link rules belong to the structure ledger. |
| feat:svg2-linking/valid-target-properties | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-validity | Marker properties must reference a marker element; other property references follow their own chapters; a wrong target type is an invalid reference. | donner/svg/renderer/RenderingContext.cc:1479-1509 checks the component type of the target for pattern paint, mask and marker references. | A mismatch simply yields no effect. | resvg painting/marker and masking suites (not audited case by case here) | - | - | The mask rule that a non-mask target makes the whole document an image reference depends on mask-image support, which is another ledger. |
| feat:svg2-linking/circular-references | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#TermCircularReference | A reference that leads back to itself, directly or indirectly, is an invalid reference. | donner/svg/components/shadow/ShadowTreeSystem.cc:259-270 and :341-390 (use); donner/svg/components/paint/PaintSystem.cc:266-290 (gradients, patterns); donner/svg/components/filter/FilterSystem.cc:332-368; donner/svg/components/resources/SubDocumentCache.cc:116-131 (image sub-documents). | Each stops and warns instead of recursing. | resvg structure/use/self-recursive.svg, recursive.svg, indirect-recursive-1..3.svg, nested-recursive-1..2.svg; paint-servers/linearGradient/self-recursive-xlink-href.svg, recursive-xlink-href-1..3.svg; structure/image/recursive-1.svg, recursive-2.svg (none skipped) | - | - | Pattern self-recursion cases run with a raised threshold or as undefined behavior (donner/svg/renderer/tests/resvg_test_suite.cc:698, 728-736). |
| feat:svg2-linking/invalid-reference-error-behavior | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#TermInvalidReference | An invalid reference is handled by the fallback of the referencing feature, or the element is not rendered; rendering of the rest continues. | donner/svg/renderer/RenderingContext.cc:1609-1614 and donner/svg/components/paint/PaintSystem.cc:343-348 emit warnings. | The referencing element renders nothing or without the inherited data. | resvg structure/use/xlink-to-an-invalid-element-1.svg; paint-servers/linearGradient/unresolved-xlink-href.svg | - | - | |
| feat:svg2-linking/cors-fetch | not-applicable | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-fetch | Network fetches use CORS-enabled requests with a mode that depends on the referencing element. | donner/svg/resources/ResourceLoaderInterface.h: the host supplies bytes for a URL string. | No network stack. | none | - | - | Fetch policy is the host application's responsibility. |
| feat:svg2-linking/svg-fragment-identifiers | missing | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#SVGFragmentIdentifiers | A URL that addresses an SVG document may carry an svgView() specification or a media fragment (#xywh=) that changes the viewport. | grep for svgView and xywh under donner/svg finds nothing. | donner/svg/resources/UrlLoader.cc:39-41 strips the fragment only for extension sniffing; the loader receives it untouched. | none | low | M | Affects <image href="a.svg#svgView(viewBox(...))"> and hosts that open a document by URL. The view element itself belongs to the structure ledger. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:svg2-conform/wellformed-xml-required | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGStandAloneFiles | A conforming stand-alone file is a well-formed XML document whose root is an svg element; a file that is not is in error. | donner/svg/parser/SVGParser.cc:1034-1037 fails on any XML error the parser detects. | donner/svg/parser/SVGParser.cc:903-965 requires the svg root in the SVG namespace. | donner/svg/parser/tests/SVGParser_tests.cc:453 XmlParseErrors; donner/svg/parser/tests/SVGParser_tests.cc:653; donner/svg/parser/tests/SVGParser_tests.cc:523 | - | - | Limited by the lenient cases in feat:xml/error-recovery-policy. |
| feat:svg2-conform/error-processing | spec-ambiguity | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ErrorProcessing | When a document is in error, rendering continues past the element in error, that element or part is not rendered, and the user agent should report details such as line and column. | donner/base/xml/XMLParser.cc:519-531 attaches line and column to the diagnostic. | donner/svg/parser/SVGParser.cc:1053-1056: on an XML error no document is produced, so nothing is rendered. | donner/svg/parser/tests/SVGParser_tests.cc:453 (asserts position) | low | - | The CR no longer says what to draw when the XML itself is malformed (SVG 1.1 said to render up to the error). XML requires stopping normal processing; the CR error rule is written for element-level errors. Donner stops, which XML mandates. Element-level errors (bad attribute values) do continue with warnings. |
| feat:svg2-conform/interpreter-xml-constructs | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGInterpreters | An SVG interpreter must parse every construct of XML 1.0 and Namespaces in XML, and respect the DOM structure of conforming content. | Gaps: PIs whose target starts with xml, UTF-16, attribute-list defaults, NDATA entities, parameter entities between declarations. | Comments and PIs are dropped from the tree in the SVG path. | see the individual rows | high | M | Roll-up row. |
| feat:svg2-conform/svg-fragment-in-parent-xml | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGDOMSubtrees | SVG fragments may be embedded in a parent XML document through namespaces. | donner/svg/parser/SVGParser.cc:956-964 rejects any document whose root is not svg. | No way to locate an svg element below a foreign root. | donner/svg/parser/tests/SVGParser_tests.cc:653 RootElementNotSvgFails pins the rejection | low | M | Support for parent grammars is not required of a stand-alone viewer; noted because struct.html shows the pattern. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:data-url/base64 | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGViewers | Viewers must support data URLs with base64 content. | donner/base/parser/DataUrlParser.cc:46-50 and :61-67; donner/base/encoding/Base64.cc:37-70. | donner/svg/resources/UrlLoader.cc:89-99. | donner/base/parser/tests/DataUrlParser_tests.cc:58 SimpleBase64, :137 InvalidBase64; donner/base/encoding/tests/Base64_tests.cc; resvg structure/image/embedded-png.svg | - | - | Decoder is lax: whitespace and = are skipped anywhere and a dangling sextet is dropped. |
| feat:data-url/percent-encoded | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGViewers | Viewers must support data URLs with URL-encoded content. | donner/base/parser/DataUrlParser.cc:68-70; donner/base/encoding/UrlDecode.cc:25-55. | donner/svg/resources/UrlLoader.cc:89-99. | donner/base/parser/tests/DataUrlParser_tests.cc:108 UrlEncodedWithMime, :123; donner/base/encoding/tests/UrlDecode_tests.cc | - | - | An invalid escape is kept literally; + is not a space, as in URLs. |
| feat:data-url/scheme-and-base64-token-case | divergent | https://www.rfc-editor.org/rfc/rfc2397#section-3 | The scheme name and the media type are case-insensitive, and ;base64 is the last parameter before the comma. | donner/base/parser/DataUrlParser.cc:19, :27 and donner/svg/resources/UrlLoader.cc:146 compare data: case-sensitively; donner/base/parser/DataUrlParser.cc:47 requires the exact lowercase suffix ;base64. | donner/svg/graph/Reference.cc:15, :45, :65 use the same case-sensitive prefix, so DATA: is treated as an external file. | none | low | S | By code reading DATA:image/png;base64,... goes to the external loader and ;BASE64 is percent-decoded as text. |
| feat:data-url/media-type | partial | https://www.rfc-editor.org/rfc/rfc2397#section-3 | The media type is optional and defaults to text/plain;charset=US-ASCII; media types compare case-insensitively. | donner/base/parser/DataUrlParser.cc:52-59 keeps the type up to the first ;, verbatim, and leaves it empty when absent. | donner/svg/resources/ImageLoader.cc:238-241 and :144-146 compare with exact lowercase strings. | donner/base/parser/tests/DataUrlParser_tests.cc:70 MimeTypeWithParameters, :83; donner/svg/resources/tests/ImageLoader_tests.cc:102, :150 | low | S | An empty type falls back to content sniffing, which is more useful than text/plain for images. IMAGE/PNG and image/svg+xml with stray whitespace are unsupported. |
| feat:data-url/charset-parameter | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | A charset parameter gives the encoding of the payload; for image/svg+xml it follows the XML media type rules. | donner/base/parser/DataUrlParser.cc:52-59 discards all parameters. | The payload reaches the XML parser, which requires UTF-8. | donner/base/parser/tests/DataUrlParser_tests.cc:70 | low | S | data:image/svg+xml;charset=utf-16,... cannot work; harmless for UTF-8 and ASCII. |
| feat:data-url/everywhere-a-document-url-is-allowed | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGViewers | Data URLs must work wherever a reference to another document is permitted. | donner/svg/graph/Reference.cc:44-47 and :64-66 class a data URL as neither external nor resolvable. | Supported: image and feImage (donner/svg/resources/ImageLoader.cc:227-241), font sources, CSS @import. Not supported: use, where donner/svg/renderer/RenderingContext.cc:1598-1614 only reports a failed target. | donner/svg/parser/tests/SVGParser_tests.cc:1144; donner/base/parser/tests/DataUrlParser_tests.cc:96 FontWoff; no test for use with a data URL | low | M | By code reading <use href="data:image/svg+xml,...#id"/> renders nothing. |
| feat:data-url/svg-must-be-complete-document | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ConformingSVGViewers | An image/svg+xml data URL must contain a complete well-formed SVG document to be processed. | donner/svg/parser/SVGParser.cc:994-1009 parses the payload as an independent document. | A parse error becomes a warning and the image is not drawn. | donner/svg/parser/tests/SVGParser_tests.cc:1123 SubDocumentParseErrorsReportedAsWarnings; donner/svg/parser/tests/SVGParser_tests.cc:1365 InlineParentDoesNotMakeDataChildInline | - | - | |
| feat:data-url/fragment-in-data-url | divergent | https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#TermDataURL | A data URL may carry a fragment; the fragment is not part of the payload. | donner/svg/graph/Reference.cc:13-17 never splits a data URL; donner/base/parser/DataUrlParser.cc:37-43 passes everything after the comma to the decoder. | A trailing #frag becomes payload bytes (or a base64 error). | donner/svg/graph/tests/Reference_tests.cc:53 DataUrlNotExternal | low | S | A literal # inside percent-encoded SVG is common in hand-written URLs, so the lenient reading helps those. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:svgz/gzip-detection-and-decoding | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#user-agent-compression-requirements | Implementations must correctly handle gzip-encoded data streams; svgz is gzip-compressed SVG. | donner/svg/parser/SVGParser.cc:1022-1032 detects the gzip magic bytes and inflates before XML parsing; donner/base/encoding/Decompress.cc:128-142. | donner/svg/components/resources/ResourceManagerContext.cc:130-158 does the same for image sub-documents and refuses a second gzip layer. | donner/svg/parser/tests/SVGParser_tests.cc:79 Svgz; donner/svg/parser/tests/SVGParser_tests.cc:104; donner/svg/parser/tests/SVGParser_tests.cc:878 GzipErrors; donner/base/encoding/tests/Decompress_tests.cc:12; donner/svg/resources/tests/ImageLoader_tests.cc:161; resvg structure/image/embedded-svgz.svg, external-svgz.svg | - | - | Output is capped at the input-size limit (16 MiB by default), an intentional bound. |
| feat:svgz/multi-member-gzip | divergent | https://www.rfc-editor.org/rfc/rfc1952#section-2.2 | A gzip file may consist of several members whose outputs are concatenated. | donner/base/encoding/Decompress.cc:108-110 stops at the first end of stream. | Later members are ignored without a diagnostic. | none | low | S | By code reading. RFC 1952 requirement stated from the fetched CR reference only; the RFC text itself was not fetched (from memory, unverified). |
| feat:svgz/deflate-streams | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#user-agent-compression-requirements | Implementations must also handle deflate-encoded streams for any content type. | donner/base/encoding/Decompress.cc:144-147 decodes zlib streams of a known size (used for WOFF). | donner/svg/parser/SVGParser.cc:1022-1024 sniffs only gzip; a zlib or raw deflate SVG is passed to the XML parser and fails. | donner/base/encoding/tests/Decompress_tests.cc:26 Zlib | low | S | Deflate as a transfer coding belongs to the HTTP layer the host owns; a file stored deflate-compressed is not a registered form. |
| feat:svgz/http-header-mismatch | not-applicable | https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#user-agent-compression-requirements | Over HTTP, compressed content whose Content-Encoding or Transfer-Encoding header is missing or wrong must be treated as in error. | No HTTP layer. | Compression is detected from the bytes. | none | - | - | Hosts that fetch over HTTP own this rule; sniffing local bytes is reasonable where no header exists. |
| feat:mime/svg-media-type | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | SVG content is labeled image/svg+xml; svgz is the same type with gzip coding. | donner/svg/resources/UrlLoader.cc:37-66 maps .svg and .svgz to image/svg+xml by extension, case-insensitively. | donner/svg/resources/ImageLoader.cc:238-241 routes that type, compared case-sensitively, to SVG parsing. | donner/svg/resources/tests/UrlLoader_tests.cc:230 DetectsSvgMimeType, :241, :274, :285; donner/svg/resources/tests/ImageLoader_tests.cc:139 | low | S | SVG served under a generic XML type in a data URL (text/xml, application/xml) is rejected as unsupported (donner/svg/resources/ImageLoader.cc:144-146). |
| feat:mime/content-sniffing | conformant-untested | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | The registration defines no magic number; type comes from metadata. Sniffing is outside the specification. | donner/svg/resources/ImageLoader.cc:16-36 treats content whose first non-whitespace byte is <, or gzip magic, as SVG when no type is known; donner/svg/resources/ImageLoader.cc:90-103 gates rasters on PNG, JPEG and GIF magic. | donner/svg/resources/ImageLoader.cc:238-241. | donner/svg/resources/tests/ImageLoader_tests.cc:150, :161, :172, :179; resvg structure/image/embedded-svg-without-mime.svg, embedded-jpeg-without-mime.svg | - | - | An extension to cope with missing types. The sniff does not skip a UTF-8 byte order mark, so an untyped SVG that starts with one is sent to the raster decoder and fails (by code reading). A declared raster type is not trusted either: the magic bytes decide among PNG, JPEG and GIF. Tests exist for the behavior; there is no spec text to conform to, hence the class. |
| feat:mime/host-loader-has-no-type-channel | partial | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | The media type of a fetched resource comes from the transport. | donner/svg/resources/ResourceLoaderInterface.h returns bytes only. | donner/svg/resources/UrlLoader.cc:120-122 derives the type from the URL extension, falling back to sniffing. | donner/svg/resources/tests/UrlLoader_tests.cc:301 UnknownExtensionEmptyMimeType | low | S | A host that fetched https://example/render?id=3 with Content-Type image/svg+xml cannot pass the type along; sniffing covers SVG, PNG, JPEG and GIF. |
| feat:mime/fragment-identifiers | missing | https://www.w3.org/TR/2026/CR-SVG2-20261006/mimereg.html#mime-registration | Fragment identifiers of the media type are element ids, SVG view specifications and media fragments. | Element ids only, see feat:svg2-linking/svg-fragment-identifiers. | Same. | none | low | M | Duplicate of the linking row from the registration side. |
| Location | What it does | Rules it bypasses |
| donner/base/xml/XMLTokenizer.h (whole file; declaration at :250-253, PI at :258-260) | Separate error-recovering tokenizer for editor highlighting and source-range lookup. | Everything; by design it never fails. Treats any <?xml... prefix as an XML declaration token, the same prefix confusion as the parser, but without failing. |
| donner/base/xml/XMLParser.cc:62-96 and :1241-1290 | Finds the end of <!ENTITY ...> and of the DOCTYPE by quote and bracket counting; finds entity declarations by the literal text <!ENTITY. | Comments, PIs and other declarations inside the internal subset (see feat:xml/prod-28a-29-intSubset). |
| donner/base/xml/XMLDocument.cc:99-125 FindOpeningTagEnd | Scans from < to the first > outside quotes for incremental edits. | Does not know comments, CDATA, PIs or DOCTYPE; only meant for element start tags. |
| donner/base/xml/XMLDocument.cc:128-143 FindDirtyOpeningTagEnd | First > after a start offset, ignoring quotes. | A > inside an attribute value ends the tag early. |
| donner/base/xml/XMLDocument.cc:145-156 FindClosingTagStart | rfind("</") before the node end. | </ inside a comment, CDATA section or attribute value. |
| donner/base/xml/XMLIncrementalParser.cc:28-59 | Checks the last byte is >, inserts / before it to make a fragment self-closing, wraps text in <node>...</node>, then calls the real parser. | A start tag whose last attribute value ends in / followed by > is misread as already self-closing; DOCTYPE entities are not in scope for the fragment. |
| donner/editor/AttributeWriteback.cc:39-62 and :284-295 onward | Verifies <name at an offset and walks to the end of the opening tag to insert an attribute. | Uses parser offsets as the starting point; the walk itself is manual. |
| donner/editor/FocusView.cc:1380-1402 AncestorTagRanges | find('>') for the end of the opening tag and rfind("</") for the closing tag. | A > in an attribute value, </ in comments or CDATA. Display only. |
| donner/editor/ShapeClipboardCommands.cc:378, :388-410, :80 | Locates the paste point with rfind("</svg>"), finds a group by searching for id="..." text, and matches <g and </g> by depth counting. | Prefixed roots (</svg:svg>), single-quoted ids, <g or </g> text inside comments, CDATA or attribute values. Can splice a paste into the wrong place. |
| donner/editor/DocumentSyncController.cc:166-172 and :174-183 | rfind("</svg>") to find the root close tag; first-character test to decide whether an edit inserts an element. | Same as above for prefixed or commented text. |
| donner/editor/FontPreviewCache.cc:64-65 | Accepts cached preview text if it contains <svg and <path and no <text. | Substring test only. |
| donner/editor/TextEditorCore.cc:2235-2290, donner/editor/TextEditor.cc:2186, :2233, donner/editor/SoftWrap.cc:43 | Syntax coloring, auto-close and wrap heuristics keyed on <, quotes and ;. | Cosmetic. |
| donner/svg/resources/ImageLoader.cc:16-36 LooksLikeSvgContent | First non-whitespace byte is <, or gzip magic, means SVG when no media type is known. | Does not skip a UTF-8 byte order mark; any XML or HTML document counts as SVG until the real parse fails. |
| donner/svg/parser/SVGParser.cc:1023-1024 and donner/svg/components/resources/ResourceManagerContext.cc:130 | Gzip magic-byte test before parsing. | Not XML scanning; listed because it decides which parser sees the bytes. |