diff --git a/public/architecture.html b/public/architecture.html index 167c467d..157e1667 100644 --- a/public/architecture.html +++ b/public/architecture.html @@ -333,16 +333,16 @@
- +
- Tractatus Architecture Diagram + Tractatus Architecture Diagram
@@ -521,7 +521,7 @@ - + diff --git a/public/js/components/interactive-diagram.js b/public/js/components/interactive-diagram.js index 5ccb675f..f9cf24cf 100644 --- a/public/js/components/interactive-diagram.js +++ b/public/js/components/interactive-diagram.js @@ -149,11 +149,18 @@ class InteractiveDiagram { console.log('[InteractiveDiagram] Using documentElement as SVG'); } - if (!svg || (svg.tagName && svg.tagName.toLowerCase() !== 'svg')) { + if (!svg) { console.warn('[InteractiveDiagram] SVG diagram not found in contentDocument'); return; } + // Verify it's actually an SVG element (case-insensitive check) + const tagName = svg.tagName ? svg.tagName.toLowerCase() : ''; + if (tagName !== 'svg') { + console.warn('[InteractiveDiagram] Element found but not SVG, tagName:', tagName); + return; + } + // Store reference to SVG document for later use this.svgDoc = svgDoc; this.svg = svg;