lib/commons/text/form-control-value.js
function ariaTextboxValue(virtualNode) {
	const { actualNode } = virtualNode;
	const role = aria.getRole(actualNode);
	if (role !== 'textbox') {
		return '';
	}
	if (!dom.isHiddenWithCSS(actualNode)) {
		return text.visibleVirtual(virtualNode, true);
	} else {
		return actualNode.textContent;
	}
}
function ariaTextboxValue(virtualNode) {
	const { actualNode } = virtualNode;
	const role = aria.getRole(actualNode);
	if (role !== 'textbox') {
		return '';
	}
	if (!dom.isHiddenWithCSS(actualNode)) {
		return text.visibleVirtual(virtualNode, true);
	} else {
		return actualNode.textContent;
	}
}
function ariaTextboxValue ( virtualNode ) { const { actualNode } = virtualNode ; const role = aria . getRole ( actualNode ) ; if ( role !== 'textbox' ) { return '' ; } if ( ! dom . isHiddenWithCSS ( actualNode ) ) { return text . visibleVirtual ( virtualNode , true ) ; } else { return actualNode . textContent ; } }
Calculate value of a an element with role=textbox

@param {VirtualNode} element The VirtualNode instance whose value we want
@return {string} The calculated value
Calculate value of a an element with role = textbox