diff --git a/lib/commons/text/accessible-text-virtual.js b/lib/commons/text/accessible-text-virtual.js index ec700dc019..8b68dc2bc8 100644 --- a/lib/commons/text/accessible-text-virtual.js +++ b/lib/commons/text/accessible-text-virtual.js @@ -16,7 +16,7 @@ var phrasingElements = ['A', 'EM', 'STRONG', 'SMALL', 'MARK', 'ABBR', 'DFN', 'I' /** * Find a non-ARIA label for an element * @private - * @param {HTMLElement} element The HTMLElement + * @param {VirtualNode} element The VirtualNode instance whose label we are seeking * @return {HTMLElement} The label element, or null if none is found */ function findLabel(virtualNode) { @@ -52,7 +52,7 @@ function shouldNeverCheckSubtree({ actualNode }) { /** * Calculate value of a form element when treated as a value * @private - * @param {HTMLElement} element The HTMLElement + * @param {VirtualNode} element The VirtualNode instance whose value we want * @return {string} The calculated value */ function formValueText({ actualNode }) { @@ -103,7 +103,7 @@ function checkDescendant({ actualNode }, nodeName) { /** * Determine whether an element can be an embedded control * @private - * @param {HTMLElement} element The HTMLElement + * @param {VirtualNode} element The VirtualNode instance of the element * @return {boolean} True if embedded control */ function isEmbeddedControl(elm) { @@ -273,7 +273,7 @@ text.accessibleTextVirtual = function accessibleTextVirtual(element, inLabelledB * Determine the accessible text of an element, using logic from ARIA: * http://www.w3.org/TR/accname-aam-1.1/#mapping_additional_nd_name * - * @param {HTMLElement} element The HTMLElement + * @param {VirtualNode} element The VirtualNode instance of the HTMLElement * @param {Boolean} inLabelledByContext True when in the context of resolving a labelledBy * @param {Boolean} inControlContext True when in the context of textifying a widget * @return {string}