Video text track: Kind attribute missing from block markup when value set to Subtitles
Describe the bug Gutenberg 9.2 introduced text tracks for the Video block. The text tracks UI allows the user to add a value for the Kind attribute. When the value for Kind is set to Subtitles this attribute is not displayed in the block markup output to the browser.
To reproduce
- Add a Video block with a text track: subtitles.zip.
- Set Subtitles as the value for Kind.
- Save the post and observe the Kind attribute is missing from the
<track>element. - Set Captions as the value for Kind.
- Observe the Kind attribute is present in the
<track>element.
All other available values (captions, chapters, descriptions, metadata) are set for the <track> element attribute as expected.
Expected behavior
The Kind attribute should appear as an attribute of the <track> element when Subtitles is set as the value.
Screenshots

Editor version (please complete the following information):
- WordPress version: [e.g: 5.5.3]
- Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Gutenberg plugin
- If the Gutenberg plugin is installed, which version is it? 9.2.2
Testing on WP 5.7 / Gutenberg trunk, I verified that "subtitles" is not set to kind, but that all other values are.
| Subtitles | Captions |
|---|---|
![]() |
![]() |
Testing with WordPress 5.7 Gutenberg 10.1.1 Twenty Twenty One.
Added the video block. Uploaded a video. Downloaded the subtitles.zip link mentioned. Unzipped it. Uploaded the subtitles.vtt file to the video.
Frontend HTML code:

I tested switching from captions over to Subtitles.

Frontend:

Subtitles are not mentioned in the HTML code.

