servo/tests/wpt/meta/html/semantics/embedded-content/media-elements/loading-the-media-resource
TIN TUN AUNG 972ca77ce1
dom: should change media element's currentSrc to children source element's src in resource selection algorithm. (#36408)
Set the `htmlmediaelement`'s `currenSrc` in
resource-selection-algorithm.
Change the `htmlsourceelement`'s src and srcset to USVString type.

According to
[Spec](https://html.spec.whatwg.org/multipage/media.html#concept-media-load-algorithm),
Step 9.3 for mode is children, should set the `currentSrc` to `src` of
children `htmlsourceelement`.
Also, In the `htmlsourceelement` [interface
definition](https://html.spec.whatwg.org/multipage/embedded-content.html#the-source-element),
the `src` and `srcset` attribute should be type `USVString`.

Testing: More WPT tests related to resource selection algorithm are
passing.
Fix: Some spec fix

[Try](https://github.com/rayguo17/servo/actions/runs/14347535616)
cc @xiaochengh

Signed-off-by: rayguo17 <rayguo17@gmail.com>
2025-04-11 06:32:34 +00:00
..
load-removes-queued-error-event.html.ini
resource-selection-candidate-moved.html.ini
resource-selection-candidate-remove-addEventListener.html.ini
resource-selection-candidate-remove-onerror.html.ini
resource-selection-currentSrc.html.ini
resource-selection-invoke-in-sync-event.html.ini
resource-selection-invoke-insert-source-networkState.html.ini
resource-selection-pointer-control.html.ini
resource-selection-pointer-insert-br.html.ini
resource-selection-pointer-insert-source.html.ini
resource-selection-pointer-insert-text.html.ini
resource-selection-pointer-remove-source-after.html.ini
resource-selection-pointer-remove-source.html.ini
resource-selection-pointer-remove-text.html.ini
resource-selection-source-media-env-change.html.ini Sync WPT with upstream (08-10-2023) (#30516) 2023-10-08 16:57:16 +00:00
resource-selection-source-media.html.ini