From 67d05b0104dab928fc5334fe63e46cd62d1e4e22 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 26 Nov 2024 16:26:35 +0000 Subject: [PATCH] LibWeb: Use `[URL]` extended attribute for `HTMLVideoElement.poster` --- Libraries/LibWeb/HTML/HTMLVideoElement.idl | 2 +- Tests/LibWeb/Text/expected/usvstring-url-reflection.txt | 1 + Tests/LibWeb/Text/input/usvstring-url-reflection.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/LibWeb/HTML/HTMLVideoElement.idl b/Libraries/LibWeb/HTML/HTMLVideoElement.idl index f19d18eb10b..45a74daafdd 100644 --- a/Libraries/LibWeb/HTML/HTMLVideoElement.idl +++ b/Libraries/LibWeb/HTML/HTMLVideoElement.idl @@ -10,7 +10,7 @@ interface HTMLVideoElement : HTMLMediaElement { [CEReactions, Reflect] attribute unsigned long height; readonly attribute unsigned long videoWidth; readonly attribute unsigned long videoHeight; - [CEReactions, Reflect] attribute USVString poster; + [CEReactions, Reflect, URL] attribute USVString poster; [CEReactions, Reflect=playsinline] attribute boolean playsInline; }; diff --git a/Tests/LibWeb/Text/expected/usvstring-url-reflection.txt b/Tests/LibWeb/Text/expected/usvstring-url-reflection.txt index 314d531c354..3c061c9c7c6 100644 --- a/Tests/LibWeb/Text/expected/usvstring-url-reflection.txt +++ b/Tests/LibWeb/Text/expected/usvstring-url-reflection.txt @@ -13,6 +13,7 @@ object.data final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD script.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD source.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD track.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD +video.poster final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD video.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD q.cite final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD blockquote.cite final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD diff --git a/Tests/LibWeb/Text/input/usvstring-url-reflection.html b/Tests/LibWeb/Text/input/usvstring-url-reflection.html index 44dbb9101eb..8aa5a365245 100644 --- a/Tests/LibWeb/Text/input/usvstring-url-reflection.html +++ b/Tests/LibWeb/Text/input/usvstring-url-reflection.html @@ -18,6 +18,7 @@ { "script": "src" }, { "source": "src" }, { "track": "src" }, + { "video": "poster" }, { "video": "src" }, { "q": "cite" }, { "blockquote": "cite" },