mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Extend src attribute of HTMLScriptElement with TrustedTypes
The field does no longer have the Reflect and URL attributes so we remove it from our internal unit test.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
664a3b536a
commit
f65dca1b53
Notes:
github-actions[bot]
2025-09-16 08:58:57 +00:00
Author: https://github.com/tete17 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f65dca1b533 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6058 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/gmta ✅
@@ -14,6 +14,7 @@
|
||||
#include <LibWeb/HTML/Scripting/Script.h>
|
||||
#include <LibWeb/ReferrerPolicy/ReferrerPolicy.h>
|
||||
#include <LibWeb/TrustedTypes/TrustedScript.h>
|
||||
#include <LibWeb/TrustedTypes/TrustedScriptURL.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
@@ -61,6 +62,9 @@ public:
|
||||
TrustedTypes::TrustedScriptOrString text() const { return child_text_content(); }
|
||||
WebIDL::ExceptionOr<void> set_text(TrustedTypes::TrustedScriptOrString);
|
||||
|
||||
TrustedTypes::TrustedScriptURLOrString src() const { return Utf16String::from_utf8(get_attribute_value(AttributeNames::src)); }
|
||||
WebIDL::ExceptionOr<void> set_src(TrustedTypes::TrustedScriptURLOrString);
|
||||
|
||||
[[nodiscard]] bool async() const;
|
||||
void set_async(bool);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user