function descendantText(nodeName, { actualNode }, context) {
	nodeName = nodeName.toLowerCase();
	// Prevent accidently getting the nested element, like:
	// fieldset > fielset > legend (1st fieldset has no legend)
	const nodeNames = [nodeName, actualNode.nodeName.toLowerCase()].join(',');
	const candidate = actualNode.querySelector(nodeNames);

	if (!candidate || candidate.nodeName.toLowerCase() !== nodeName) {
		return '';
	}
	return text.accessibleText(candidate, context);
}
function descendantText(nodeName, { actualNode }, context) {
	nodeName = nodeName.toLowerCase();
	// Prevent accidently getting the nested element, like:
	// fieldset > fielset > legend (1st fieldset has no legend)
	const nodeNames = [nodeName, actualNode.nodeName.toLowerCase()].join(',');
	const candidate = actualNode.querySelector(nodeNames);

	if (!candidate || candidate.nodeName.toLowerCase() !== nodeName) {
		return '';
	}
	return text.accessibleText(candidate, context);
}
function descendantText ( nodeName , { actualNode } , context ) { nodeName = nodeName . toLowerCase ( ) ; // Prevent accidently getting the nested element, like: // fieldset > fielset > legend (1st fieldset has no legend) const nodeNames = [ nodeName , actualNode . nodeName . toLowerCase ( ) ] . join ( ',' ) ; const candidate = actualNode . querySelector ( nodeNames ) ; if ( ! candidate || candidate . nodeName . toLowerCase ( ) !== nodeName ) { return '' ; } return text . accessibleText ( candidate , context ) ; }
Get the accessible text of first matching node
IMPORTANT: This method does not look at the composed tree
@private
Get the accessible text of first matching node IMPORTANT : This method does not look at the composed tree
Returns the text of a descendant node