mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 11:57:19 +02:00
LibWeb: Implement TextTrack.id
(cherry picked from commit ba8e77df1690e9ce00c4903b65adbc19fbda25ed)
This commit is contained in:
committed by
Nico Weber
parent
c8cd40fa21
commit
894567cb44
@@ -48,6 +48,12 @@ void HTMLTrackElement::attribute_changed(FlyString const& name, Optional<String>
|
||||
} else if (name.equals_ignoring_ascii_case("srclang"sv)) {
|
||||
m_track->set_language(value.value_or({}));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#dom-texttrack-id
|
||||
// For tracks that correspond to track elements, the track's identifier is the value of the element's id attribute, if any.
|
||||
if (name.equals_ignoring_ascii_case("id"sv)) {
|
||||
m_track->set_id(value.value_or({}));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user