openui / openui/open-ui

[openable] Under what conditions should openable JS methods throw?

Open
#1,160 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage openable
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

Should JS methods throw under various circumstances:

When the element isn’t connected to the document?
When the element’s node document isn’t fully active?
When the element is open as a non-modal dialog?
When the element is open as a modal dialog?
When the element is open as a popover?
When the element is a fullscreen element?

Popover has a variety of restrictions such as this so we should decide the same for openables.

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 openables proposal and the existing popover restrictions referenced in the issue. Determine the intended throwing behavior for disconnected, inactive, dialog, popover, and fullscreen states; done means the conditions are explicitly decided and documented in the relevant standard proposal.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.