src/aria/popups/Popup.js
function () {
            var document = this._document;
            var cfg = this.conf;
            var div = document.createElement("div");
            div.style.cssText = "position:absolute;top:-15000px;left:-15000px;";
            document.body.appendChild(div);
            var html = [
                 "<div ",
                 ariaUtilsDelegate.getMarkup(this._delegateId),
                 ' style="position:absolute;top:-15000px;left:-15000px;visibility:hidden;display:block;"'
            ];

            if (cfg.waiAria) {
                var role = cfg.role;
                if (role) {
                    role = ariaUtilsString.escapeForHTML(role, {attr: true});
                    html.push(' role="' + role + '"');
                }

                var labelId = cfg.labelId;
                if (labelId) {
                    labelId = ariaUtilsString.escapeForHTML(labelId, {attr: true});
                    html.push(' aria-labelledby="' + labelId + '"');
                }
            }

            html.push("></div>");
            div.innerHTML = html.join('');

            var domElement = div.firstChild;
            document.body.removeChild(div);
            return this.popupContainer.getContainerElt().appendChild(domElement);
        }
function () {
            var document = this._document;
            var cfg = this.conf;
            var div = document.createElement("div");
            div.style.cssText = "position:absolute;top:-15000px;left:-15000px;";
            document.body.appendChild(div);
            var html = [
                 "<div ",
                 ariaUtilsDelegate.getMarkup(this._delegateId),
                 ' style="position:absolute;top:-15000px;left:-15000px;visibility:hidden;display:block;"'
            ];

            if (cfg.waiAria) {
                var role = cfg.role;
                if (role) {
                    role = ariaUtilsString.escapeForHTML(role, {attr: true});
                    html.push(' role="' + role + '"');
                }

                var labelId = cfg.labelId;
                if (labelId) {
                    labelId = ariaUtilsString.escapeForHTML(labelId, {attr: true});
                    html.push(' aria-labelledby="' + labelId + '"');
                }
            }

            html.push("></div>");
            div.innerHTML = html.join('');

            var domElement = div.firstChild;
            document.body.removeChild(div);
            return this.popupContainer.getContainerElt().appendChild(domElement);
        }
function ( ) { var document = this . _document ; var cfg = this . conf ; var div = document . createElement ( "div" ) ; div . style . cssText = "position:absolute;top:-15000px;left:-15000px;" ; document . body . appendChild ( div ) ; var html = [ "<div " , ariaUtilsDelegate . getMarkup ( this . _delegateId ) , ' style="position:absolute;top:-15000px;left:-15000px;visibility:hidden;display:block;"' ] ; if ( cfg . waiAria ) { var role = cfg . role ; if ( role ) { role = ariaUtilsString . escapeForHTML ( role , { attr : true } ) ; html . push ( ' role="' + role + '"' ) ; } var labelId = cfg . labelId ; if ( labelId ) { labelId = ariaUtilsString . escapeForHTML ( labelId , { attr : true } ) ; html . push ( ' aria-labelledby="' + labelId + '"' ) ; } } html . push ( "></div>" ) ; div . innerHTML = html . join ( '' ) ; var domElement = div . firstChild ; document . body . removeChild ( div ) ; return this . popupContainer . getContainerElt ( ) . appendChild ( domElement ) ; }
Create the DOM element of the popup, which will be used as the container
@protected
@return {HTMLElement} The DOM element created for this popup
Create the DOM element of the popup which will be used as the container