src/aria/utils/Dom.js
function (id) {
            if (ariaCoreBrowser.isIE7) {
                this.getElementById = function (id) {
                    var document = Aria.$window.document;
                    var el = document.getElementById(id);
                    if (el) {
                        // If id match, return element
                        if (el.getAttribute("id") == id) {
                            return el;
                        } else {
                            for (var elem in document.all) {
                                if (elem.id == id) {
                                    return elem;
                                }
                            }
                        }
                    }
                    return null;
                };
            } else {
                this.getElementById = function (id) {
                    var document = Aria.$window.document;
                    return document.getElementById(id);
                };
            }
            return this.getElementById(id);
        }
function (id) {
            if (ariaCoreBrowser.isIE7) {
                this.getElementById = function (id) {
                    var document = Aria.$window.document;
                    var el = document.getElementById(id);
                    if (el) {
                        // If id match, return element
                        if (el.getAttribute("id") == id) {
                            return el;
                        } else {
                            for (var elem in document.all) {
                                if (elem.id == id) {
                                    return elem;
                                }
                            }
                        }
                    }
                    return null;
                };
            } else {
                this.getElementById = function (id) {
                    var document = Aria.$window.document;
                    return document.getElementById(id);
                };
            }
            return this.getElementById(id);
        }
function ( id ) { if ( ariaCoreBrowser . isIE7 ) { this . getElementById = function ( id ) { var document = Aria . $window . document ; var el = document . getElementById ( id ) ; if ( el ) { // If id match, return element if ( el . getAttribute ( "id" ) == id ) { return el ; } else { for ( var elem in document . all ) { if ( elem . id == id ) { return elem ; } } } } return null ; } ; } else { this . getElementById = function ( id ) { var document = Aria . $window . document ; return document . getElementById ( id ) ; } ; } return this . getElementById ( id ) ; }
To be used instead of document.getElementById because IE7 does not retrieve correctly the elements in some
cases
@param {String} id the 'id' parameter of the element to find
@return {HTMLElement}
To be used instead of document . getElementById because IE7 does not retrieve correctly the elements in some cases