Fix WebVTT description indicating that text payload lines need to start with a hyphen #19997
Labels
Content:WebAPI
Web API docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API
What specific section or headline is this issue about?
https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#inner_structure_of_a_webvtt_file
What information was incorrect, unhelpful, or incomplete?
The text indicates that the text payload lines of the cues need to start with a hyphen:
The examples at the start of the article also all start with hyphens, further indicating that this would be necessary.
To my understanding of the specification, the text payload can contain any text in the lines, except
<
and&
(they need to be escaped) and empty lines.The hyphens (
-
) would simply show up as a hyphen in the subtitle.What did you expect to see?
Any text indicating that hyphens at the start of the payload lines are necessary should be removed.
The examples should be adapted to show that this is not necessary, e.g. showing some lines that do not have hyphens at the start.
This is already the case for examples later in the article.
Do you have any supporting links, references, or citations?
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/webvtt_api
The text was updated successfully, but these errors were encountered: