mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
Meta: Validate proper formatting for FIXMEs and AD-HOCs
This commit is contained in:
parent
100f37995f
commit
6951ef4ee3
Notes:
github-actions[bot]
2025-11-14 08:18:28 +00:00
Author: https://github.com/Psychpsyo
Commit: 6951ef4ee3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6810
2 changed files with 14 additions and 3 deletions
|
|
@ -1259,8 +1259,8 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::process_media_data(Function<void(Str
|
|||
if (enable == TriState::True)
|
||||
audio_track->set_enabled(true);
|
||||
|
||||
// AD-HOC(ish): According to https://dev.w3.org/html5/html-sourcing-inband-tracks/, kind should be set according to format, and the following criteria within
|
||||
// the specified formats.
|
||||
// NB: According to https://dev.w3.org/html5/html-sourcing-inband-tracks/, kind should be set according to format, and the following criteria within
|
||||
// the specified formats.
|
||||
// WebM:
|
||||
// - "main": the FlagDefault element is set on the track
|
||||
// - "translation": not first audio (video) track
|
||||
|
|
@ -1318,7 +1318,7 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::process_media_data(Function<void(Str
|
|||
if (enable == TriState::True)
|
||||
video_track->set_selected(true);
|
||||
|
||||
// AD-HOC(ish): See the comment regarding AudioTrack.kind above with regard to https://dev.w3.org/html5/html-sourcing-inband-tracks/.
|
||||
// NB: See the comment regarding AudioTrack.kind above with regard to https://dev.w3.org/html5/html-sourcing-inband-tracks/.
|
||||
video_track->set_kind(enable == TriState::True ? "main"_utf16 : "translation"_utf16);
|
||||
|
||||
// 7. Fire an event named addtrack at this VideoTrackList object, using TrackEvent, with the track attribute initialized to the new VideoTrack object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue