Skip to content

Add HTMLMediaElement.removeTextTrack() method - #12735

Open
danae404 wants to merge 1 commit into
whatwg:mainfrom
danae404:add-removetexttrack
Open

Add HTMLMediaElement.removeTextTrack() method#12735
danae404 wants to merge 1 commit into
whatwg:mainfrom
danae404:add-removetexttrack

Conversation

@danae404

@danae404 danae404 commented Jul 29, 2026

Copy link
Copy Markdown

Adds a removeTextTrack(track) method that undoes addTextTrack(), mirroring its algorithm and phrasing. Only text tracks added via addTextTrack() can be removed this way; removing a track corresponding to a track element or an in-band track throws a NotFoundError.

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff )
/media.html ( diff )

Adds a removeTextTrack(track) method that undoes addTextTrack(), mirroring
its algorithm and phrasing. Only text tracks added via addTextTrack() can be
removed this way; removing a track corresponding to a track element or an
in-band track throws a NotFoundError.
@jstenback jstenback added the agenda+ To be discussed at a triage meeting label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agenda+ To be discussed at a triage meeting

Development

Successfully merging this pull request may close these issues.

2 participants