Skip to content

AudioNode constructors on a closed context or in a detached document #2709

Open

Description

@padenot

Split from #1135, which was about the AudioBuffer constructor (fixed by #1241 and #2708).

AudioNode constructors behave inconsistently across node types and implementations when the context is closed or its document is detached. Analysis and Chromium tables: #1135 (comment), #1135 (comment)

WG call 2026-02-17 (#1135 (comment)):

  • Closed context: keep the status quo, since throwing would be a breaking change. Add a spec note and a WPT.
  • Detached document: investigate aligning all nodes.
  • InvalidStateError is the right exception for these terminal states.

Activity

  1. added
    Needs DiscussionThe issue needs more discussion before it can be fixed.
    category: enhancementSubstantive changes that do not add new features. https://www.w3.org/policies/process/#class-3
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DiscussionThe issue needs more discussion before it can be fixed.category: enhancementSubstantive changes that do not add new features. https://www.w3.org/policies/process/#class-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions