Home | History | Annotate | Download | only in common

Lines Matching refs:targetNode

16  * Sets the browser focus to the targetNode or its closest ancestor that is
19 * @param {Node} targetNode The node to move the browser focus to.
22 * first focusable descendant. If false, only sets focus on the targetNode or
25 cvox.Focuser.setFocus = function(targetNode, opt_focusDescendants) {
34 !cvox.DomUtil.isDescendantOfNode(targetNode, document.activeElement)) {
39 if (targetNode && (targetNode.constructor == HTMLVideoElement)) {
40 if (!cvox.DomUtil.isFocusable(targetNode)) {
41 targetNode.setAttribute('tabIndex', 0);
45 if (opt_focusDescendants && !cvox.DomUtil.isFocusable(targetNode)) {
46 var focusableDescendant = cvox.DomUtil.findFocusableDescendant(targetNode);
48 targetNode = focusableDescendant;
52 while (targetNode && !cvox.DomUtil.isFocusable(targetNode)) {
53 targetNode = targetNode.parentNode;
58 if (cvox.DomUtil.isFocusable(targetNode)) {
64 if (targetNode.tagName != 'IFRAME') {
69 if (cvox.Focuser.shouldEnterSuspendEvents_(targetNode)) {
73 targetNode.focus();
79 targetNode.focus();
89 if (cvox.DomUtil.isInputTypeText(targetNode)) {
90 targetNode.select();
99 * In general, we should not enterSuspendEvents if the targetNode will get some
103 * @param {Node} targetNode The node that is being focused.
106 cvox.Focuser.shouldEnterSuspendEvents_ = function(targetNode){
107 if (targetNode.constructor && targetNode.constructor == HTMLVideoElement) {
110 if (targetNode.hasAttribute) {
111 switch (targetNode.getAttribute('type')) {