Sha256: 482ff816faafadd11f1224876eca8893b99c01e31830132311b678898e177eaa
Contents?: true
Size: 432 Bytes
Versions: 375
Compression:
Stored size: 432 Bytes
Contents
/* global axe */ /** * Return the document or document fragment (shadow DOM) * @method getRootNode * @memberof axe.utils * @param {Element} node * @returns {DocumentFragment|Document} */ axe.utils.getRootNode = function getRootNode(node) { var doc = (node.getRootNode && node.getRootNode()) || document; // this is for backwards compatibility if (doc === node) { // disconnected node doc = document; } return doc; };
Version data entries
375 entries across 375 versions & 1 rubygems