mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
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>
20 lines
639 B
Text
20 lines
639 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://html.spec.whatwg.org/multipage/#htmlsourceelement
|
|
[Exposed=Window]
|
|
interface HTMLSourceElement : HTMLElement {
|
|
[HTMLConstructor] constructor();
|
|
|
|
[CEReactions]
|
|
attribute USVString src;
|
|
[CEReactions]
|
|
attribute DOMString type;
|
|
[CEReactions]
|
|
attribute USVString srcset;
|
|
[CEReactions]
|
|
attribute DOMString sizes;
|
|
[CEReactions]
|
|
attribute DOMString media;
|
|
};
|