whatwg / whatwg/html

Add asynchronous version of alert, prompt, and confirm that return promises

Open
#7,151 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

addition/proposal needs implementer interest
Dominant language
HTML
Stars
9.4k
Forks
3.2k
PR merge metrics
PR metrics pending

Description

Instead of this:
let s = prompt('enter a string')
We could do something like this:
let s = await promptAsync('enter a string')
This would allow more responsive JavaScript without major changes to the JS or the browser.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the HTML Standard definitions of alert, prompt, and confirm and the issue's proposed promise-returning behavior. Determine the specification changes needed for asynchronous variants and verify that the resulting behavior matches the stated await examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.