Unlocking the Power of HTML's Native Browser Dialog Element
· 4 min read
All the major browsers now support the <dialog%gt;
element. Why add this HTML element? User land code, code that developers write to fill in gaps of the browser, was doing similar things repeatedly, especially around focus trapping, and browser engines responded by adding this functionality directly in the browser.