/**
 * Determine if an element is SVG by checking the namespace
 * Exception: the <svg> element itself should be treated like HTML
 */ const rsvg = /^http:[\w\.\/]+svg$/ ; export default function isSVGElement ( elem ) { return rsvg . test ( elem . namespaceURI ) && elem . nodeName . toLowerCase ( ) !== 'svg' ; }