Skip to main content

Module xml_passes

Module xml_passes 

Source

Functions§

collect_editor_prefixes
Collect namespace prefixes bound to editor URIs on the root SVG element.
has_no_meaningful_attributes
Check if a <g> has no meaningful attributes (only editor cruft or nothing).
is_collapsible_container
Elements that can be removed when empty (no surviving children).
is_editor_attribute
Check if an attribute belongs to an editor namespace.
is_editor_element
Check if an element belongs to an editor namespace (e.g., sodipodi:namedview).
minify_text
Minify text content — collapse whitespace to a single space, trim.