Home | History | Annotate | Download | only in common

Lines Matching refs:targetNode

154  * @param {Node} targetNode The node to check.
155 * @return {boolean} True if the targetNode should be treated as hidden.
157 cvox.AriaUtil.isHiddenRecursive = function(targetNode) {
158 if (cvox.AriaUtil.isHidden(targetNode)) {
161 var parent = targetNode.parentElement;
178 * @param {Node} targetNode The node to check.
179 * @return {boolean} True if the targetNode should be treated as hidden.
181 cvox.AriaUtil.isHidden = function(targetNode) {
182 if (!targetNode) {
185 if (targetNode.getAttribute) {
186 if ((targetNode.getAttribute('aria-hidden') == 'true') &&
187 (targetNode.getAttribute('chromevoxignoreariahidden') != 'true')) {
201 * @param {Node} targetNode The node to check.
202 * @return {boolean} True if the targetNode should be treated as visible.
204 cvox.AriaUtil.isForcedVisibleRecursive = function(targetNode) {
205 var node = targetNode;
228 * @return {boolean} True if the targetNode should be treated as a leaf node.
301 * @param {Node} targetNode The node to get the role name for.
302 * @return {string} The role name message identifier for the targetNode.
304 cvox.AriaUtil.getRoleNameMsg = function(targetNode) {
306 if (targetNode && targetNode.getAttribute) {
307 var role = cvox.AriaUtil.getRoleAttribute(targetNode);
310 if (targetNode.getAttribute('aria-haspopup') == 'true' &&
311 cvox.AriaUtil.isButton(targetNode)) {
329 var container = targetNode.parentElement;
351 * targetNode's role is.
353 * @param {Node} targetNode The node to get the role name for.
354 * @return {string} The role name for the targetNode.
356 cvox.AriaUtil.getRoleName = function(targetNode) {
357 var roleMsg = cvox.AriaUtil.getRoleNameMsg(targetNode);
359 var role = cvox.AriaUtil.getRoleAttribute(targetNode);
360 if ((role == 'heading') && (targetNode.hasAttribute('aria-level'))) {
361 roleName += ' ' + targetNode.getAttribute('aria-level');
367 * Returns a string that gives information about the state of the targetNode.
369 * @param {Node} targetNode The node to get the state information for.
375 cvox.AriaUtil.getStateMsgs = function(targetNode, primary) {
377 if (!targetNode || !targetNode.getAttribute) {
383 var value = targetNode.getAttribute(attr.name);
389 if (targetNode.getAttribute('role') == 'grid') {
390 return cvox.AriaUtil.getGridState_(targetNode, targetNode);
393 var role = cvox.AriaUtil.getRoleAttribute(targetNode);
394 if (targetNode.getAttribute('aria-haspopup') == 'true') {
397 } else if (cvox.AriaUtil.isButton(targetNode)) {
404 var valueText = targetNode.getAttribute('aria-valuetext');
411 var valueNow = targetNode.getAttribute('aria-valuenow');
412 var valueMin = targetNode.getAttribute('aria-valuemin');
413 var valueMax = targetNode.getAttribute('aria-valuemax');
440 var parentControl = targetNode;
446 role = cvox.AriaUtil.getRoleAttribute(targetNode);
454 currentDescendant = targetNode;
455 parentControl = targetNode.parentElement;
537 * @param {Node} targetNode The node to get the state information for.
542 cvox.AriaUtil.getGridState_ = function(targetNode, parentControl) {
565 * @param {Node} targetNode The node.
569 cvox.AriaUtil.getActiveDescendantId_ = function(targetNode) {
570 if (!targetNode.getAttribute) {
574 var activeId = targetNode.getAttribute('aria-activedescendant');
646 * @param {Node} targetNode The node to get descendant information for.
649 cvox.AriaUtil.getActiveDescendant = function(targetNode) {
651 var node = targetNode;
666 if (node == targetNode) {
677 * @param {Node} targetNode The node to be checked.
678 * @return {boolean} Whether the targetNode is an ARIA control widget.
680 cvox.AriaUtil.isControlWidget = function(targetNode) {
681 if (targetNode && targetNode.getAttribute) {
682 var role = cvox.AriaUtil.getRoleAttribute(targetNode);
709 * @param {Node} targetNode The node to be checked.
710 * @return {boolean} Whether the targetNode is an ARIA composite control.
712 cvox.AriaUtil.isCompositeControl = function(targetNode) {
713 if (targetNode && targetNode.getAttribute) {
714 var role = cvox.AriaUtil.getRoleAttribute(targetNode);
956 * This is equivalent to targetNode.getAttribute('role')
961 * @param {Node} targetNode The node to get the role for.
962 * @return {string} role of the targetNode.
964 cvox.AriaUtil.getRoleAttribute = function(targetNode) {
965 if (!targetNode.getAttribute) {
968 var role = targetNode.getAttribute('role');
969 if (targetNode.hasAttribute('chromevoxoriginalrole')) {
970 role = targetNode.getAttribute('chromevoxoriginalrole');