# GoogleChrome/dialog-polyfill

Polyfill for the HTML dialog element

Repository: https://github.com/GoogleChrome/dialog-polyfill
Canonical: https://ross.abutalabs.com/products/dialog-polyfill
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Topics: html, dialog, polyfill, a11y
Last push: 2026-07-02T12:24:22+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 8, longevity 100
- inputs: {"age_days": 4787, "days_push": 62, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2458, forks 240 (observed 2026-08-28T04:06:53.344168+00:00)

## What it is
A JavaScript and CSS polyfill that adds support for the HTML <dialog> element and <form method="dialog"> to browsers lacking native support. It registers dialog nodes so they behave like native dialogs, including modal mode with an inert backdrop.

## Use cases
- use the html dialog element in older browsers
- show modal popups with a backdrop
- make the page inert while a dialog is open
- support form method=dialog close buttons
- polyfill dialog in ie9 and legacy browsers
- style dialog backdrops consistently across browsers

## When to choose
- you need <dialog> support in browsers without native implementation, including IE9+
- you want a small drop-in polyfill that defers to native support when available
- you need modal dialogs with accessibility support in legacy environments

## When to avoid
- you only target modern browsers with native <dialog> support
- your dialogs live inside Shadow DOM or stacking-context parents, where the polyfill has known limitations
- you need a full component library rather than a single-element polyfill

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, accessibility
- domain: web-development, frontend, accessibility
- platform: browser
- tags: polyfill, html-dialog, modal, javascript, nodejs

## Member repositories
- GoogleChrome/dialog-polyfill (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.344168+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:29:22.252460+00:00, confidence not recorded.
  - readme: https://github.com/GoogleChrome/dialog-polyfill (fetched 2026-08-28T04:06:53.344168+00:00, sha ed27abb42d4b)
  - registry_npm: https://registry.npmjs.org/dialog-polyfill (fetched 2026-08-29T10:11:03.725133+00:00, sha a4070b79fab2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
