src/aria/widgets/form/Input.js
function () {
            var markup = [];
            if (this._cfg.waiAria) {
                var labelledBy = this._cfg.waiLabelledBy;
                if (this._cfg.waiLabel) {
                    markup.push(' aria-label="' + ariaUtilsString.encodeForQuotedHTMLAttribute(this._cfg.waiLabel) + '" ');}
                else if (!labelledBy) {
                    labelledBy = this._labelId;
                }
                if (labelledBy) {
                    markup.push(' aria-labelledby="' + ariaUtilsString.encodeForQuotedHTMLAttribute(labelledBy) + '" ');
                }
                if (this._cfg.waiDescribedBy) {
                    markup.push(' aria-describedby="' + ariaUtilsString.encodeForQuotedHTMLAttribute(this._cfg.waiDescribedBy) + '" ');
                }
            }
            return markup.join('');
        }
function () {
            var markup = [];
            if (this._cfg.waiAria) {
                var labelledBy = this._cfg.waiLabelledBy;
                if (this._cfg.waiLabel) {
                    markup.push(' aria-label="' + ariaUtilsString.encodeForQuotedHTMLAttribute(this._cfg.waiLabel) + '" ');}
                else if (!labelledBy) {
                    labelledBy = this._labelId;
                }
                if (labelledBy) {
                    markup.push(' aria-labelledby="' + ariaUtilsString.encodeForQuotedHTMLAttribute(labelledBy) + '" ');
                }
                if (this._cfg.waiDescribedBy) {
                    markup.push(' aria-describedby="' + ariaUtilsString.encodeForQuotedHTMLAttribute(this._cfg.waiDescribedBy) + '" ');
                }
            }
            return markup.join('');
        }
function ( ) { var markup = [ ] ; if ( this . _cfg . waiAria ) { var labelledBy = this . _cfg . waiLabelledBy ; if ( this . _cfg . waiLabel ) { markup . push ( ' aria-label="' + ariaUtilsString . encodeForQuotedHTMLAttribute ( this . _cfg . waiLabel ) + '" ' ) ; } else if ( ! labelledBy ) { labelledBy = this . _labelId ; } if ( labelledBy ) { markup . push ( ' aria-labelledby="' + ariaUtilsString . encodeForQuotedHTMLAttribute ( labelledBy ) + '" ' ) ; } if ( this . _cfg . waiDescribedBy ) { markup . push ( ' aria-describedby="' + ariaUtilsString . encodeForQuotedHTMLAttribute ( this . _cfg . waiDescribedBy ) + '" ' ) ; } } return markup . join ( '' ) ; }
Returns the markup for the aria-label related attributes on a DOM element if accessibility is enabled.
@protected
Returns the markup for the aria - label related attributes on a DOM element if accessibility is enabled .