Skip to content

Commit

Permalink
chore: fix the JavaScript documentation for the functions that now ta…
Browse files Browse the repository at this point in the history
…ke VirtualNode instances
  • Loading branch information
dylanb committed Jan 30, 2018
1 parent 411b6b5 commit 9320ca6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/commons/text/accessible-text-virtual.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 }) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 9320ca6

Please sign in to comment.