src/aria/utils/DomNavigationManager.js
function createHiddenElement() {
    // -------------------------------------------------------------- properties

    var element = document.createElement('div');

    var style = element.style;
    style.width = 0;
    style.height = 0;

    element.setAttribute('aria-hidden', 'true');

    // ------------------------------------------------------------------ return

    return element;
}
function createHiddenElement() {
    // -------------------------------------------------------------- properties

    var element = document.createElement('div');

    var style = element.style;
    style.width = 0;
    style.height = 0;

    element.setAttribute('aria-hidden', 'true');

    // ------------------------------------------------------------------ return

    return element;
}
function createHiddenElement ( ) { // -------------------------------------------------------------- properties var element = document . createElement ( 'div' ) ; var style = element . style ; style . width = 0 ; style . height = 0 ; element . setAttribute ( 'aria-hidden' , 'true' ) ; // ------------------------------------------------------------------ return return element ; }
Creates a DOM element that is not visible.

<p>
It uses a technique that doesn't prevent the element from being focused.
</p>
<p>
It also respects accessibility by setting aria-hidden to true.
</p>

@return {HTMLElement} The created element.
Creates a DOM element that is not visible .