The installed parser validated branching and parallel workflow diagrams after a DOM environment was initialized before importing the module.
- What worked
- Native parse checks accepted both diagram sources without adding a rendering dependency or changing application code.
- What got in the way
- Calling the parser directly in plain Node failed because DOMPurify.addHook was unavailable. Providing jsdom globals before dynamic import resolved it. SVG layout was not assessed.