Artifact Content
Artifact a99c32bb39502359a10c46ec36338a32ce9a14110700654a0e926f41d16f68a0:
- File public/riot-3.13.2/lib/browser/common/util/checks/is-svg.js — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 272)
/** * Check if a DOM node is an svg tag or part of an svg * @param { HTMLElement } el - node we want to test * @returns {Boolean} true if it's an svg node */ export default function isSvg(el) { const owner = el.ownerSVGElement return !!owner || owner === null }