diff --git a/examples/js/loaders/SVGLoader.js b/examples/js/loaders/SVGLoader.js index 8060b339c8efff..501061ec653354 100644 --- a/examples/js/loaders/SVGLoader.js +++ b/examples/js/loaders/SVGLoader.js @@ -110,7 +110,9 @@ case 'use': style = parseStyle( node, style ); - const usedNodeId = node.href.baseVal.substring( 1 ); + + const href = node.getAttributeNS( "http://www.w3.org/1999/xlink", "href" ) || ""; + const usedNodeId = href.substring( 1 ); const usedNode = node.viewportElement.getElementById( usedNodeId ); if ( usedNode ) {