src/aria/widgets/form/Input.js
function () {
            var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label);
            if (showLabel) {
                var dom = this.getDom();
                if (this._isIE7OrLess) {
                    dom = dom ? dom.firstChild : null;
                }
                var elems = ariaUtilsDom.getDomElementsChildByTagName(dom, 'label');
                if (elems) {
                    if (elems.length === 0) {
                        this.$logError(this.WIDGET_INPUT_NO_LABEL, []);
                    } else if (elems.length == 1) {
                        return elems[0];
                    } else {
                        this.$logError(this.WIDGET_INPUT_TOO_MANY_LABELS, []);
                    }
                }
            }
            return null;
        }
function () {
            var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label);
            if (showLabel) {
                var dom = this.getDom();
                if (this._isIE7OrLess) {
                    dom = dom ? dom.firstChild : null;
                }
                var elems = ariaUtilsDom.getDomElementsChildByTagName(dom, 'label');
                if (elems) {
                    if (elems.length === 0) {
                        this.$logError(this.WIDGET_INPUT_NO_LABEL, []);
                    } else if (elems.length == 1) {
                        return elems[0];
                    } else {
                        this.$logError(this.WIDGET_INPUT_TOO_MANY_LABELS, []);
                    }
                }
            }
            return null;
        }
function ( ) { var cfg = this . _cfg , showLabel = ( ! cfg . hideLabel && ! ! cfg . label ) ; if ( showLabel ) { var dom = this . getDom ( ) ; if ( this . _isIE7OrLess ) { dom = dom ? dom . firstChild : null ; } var elems = ariaUtilsDom . getDomElementsChildByTagName ( dom , 'label' ) ; if ( elems ) { if ( elems . length === 0 ) { this . $logError ( this . WIDGET_INPUT_NO_LABEL , [ ] ) ; } else if ( elems . length == 1 ) { return elems [ 0 ] ; } else { this . $logError ( this . WIDGET_INPUT_TOO_MANY_LABELS , [ ] ) ; } } } return null ; }
Get the DOM elt associated to the Label Markup HTML element
@return {HTMLElement} Label element
@protected
Get the DOM elt associated to the Label Markup HTML element