Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
EditorParseOptions.h File Reference
Include dependency graph for EditorParseOptions.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

svg::parser::SVGParser::Options donner::editor::EditorParseOptions ()
 Parse options for editor documents. The editor round-trips user content, so the parser must PRESERVE user / data-* attributes in the DOM rather than dropping them - editor features read them back via getAttribute (e.g. IsLocked reads data-donner-locked), and a save must not silently lose the user's own attributes. The library default disableUserAttributes = true is correct for a strict renderer, not for an authoring tool. Every editor-side parse (document load, structural replace, clipboard validation) uses this.