function filerStyleAndLinkAttributesInDocumentFragment(node) {
	const nodeName = node.nodeName.toUpperCase();
	const linkHref = node.getAttribute('href');
	const linkRel = node.getAttribute('rel');
	const isLink =
		nodeName === 'LINK' &&
		linkHref &&
		linkRel &&
		node.rel.toUpperCase().includes('STYLESHEET');
	const isStyle = nodeName === 'STYLE';
	return isStyle || (isLink && filterMediaIsPrint(node.media));
}
function filerStyleAndLinkAttributesInDocumentFragment(node) {
	const nodeName = node.nodeName.toUpperCase();
	const linkHref = node.getAttribute('href');
	const linkRel = node.getAttribute('rel');
	const isLink =
		nodeName === 'LINK' &&
		linkHref &&
		linkRel &&
		node.rel.toUpperCase().includes('STYLESHEET');
	const isStyle = nodeName === 'STYLE';
	return isStyle || (isLink && filterMediaIsPrint(node.media));
}
function filerStyleAndLinkAttributesInDocumentFragment ( node ) { const nodeName = node . nodeName . toUpperCase ( ) ; const linkHref = node . getAttribute ( 'href' ) ; const linkRel = node . getAttribute ( 'rel' ) ; const isLink = nodeName === 'LINK' && linkHref && linkRel && node . rel . toUpperCase ( ) . includes ( 'STYLESHEET' ) ; const isStyle = nodeName === 'STYLE' ; return isStyle || ( isLink && filterMediaIsPrint ( node . media ) ) ; }
Get all `<style></style>` and `<link>` attributes
-> limit to only `style` or `link` attributes with `rel=stylesheet` and `media != print`

@param {Object} node HTMLElement
@returns {Boolean}
Get all <style > < / style > and <link > attributes - > limit to only style or link attributes with rel = stylesheet and media ! = print
Returns true if the node is a style element and the link attribute is a print