|
|
static constexpr size_t | kDefaultMaximumInputSize = 16 * 1024 * 1024 |
| | Default maximum number of source or expanded SVG bytes accepted from untrusted input.
|
|
static constexpr size_t | kDefaultMaximumParsedPayloadSize = 64 * 1024 * 1024 |
| | Default retained dynamic payload envelope for one untrusted SVG document.
|
|
static constexpr size_t | kDefaultMaximumContentProjectionChunks = 4096 |
| | Default maximum direct text/CDATA chunks projected into one SVG element.
|
|
static constexpr size_t | kDefaultMaximumTreeNodes = 8 * 1024 |
| | Default maximum XML tree nodes visited while converting a document into SVG components.
|
|
static constexpr size_t | kDefaultMaximumTreeDepth = 256 |
| | Default maximum SVG element depth visited during XML-to-SVG conversion.
|
Parse an SVG XML document.
Elements outside the SVG namespace are retained in the tree as unknown elements rather than detached, so whole-tree consumers (attribute selectors, export checks, source projection) see a complete document. They are marked non-rendering: neither a foreign element nor its subtree paints, matching how conforming SVG consumers treat foreign content. A retained foreign subtree counts against Options::maximumTreeNodes and Options::maximumTreeDepth like any other content, and reports one unsupported-namespace warning at the top of the subtree.