LibWeb: Hook TrustedTypes to the Range Dom api

This commit is contained in:
Tete17 2025-10-06 17:47:10 +02:00 committed by Luke Wilde
parent 701ef22952
commit bd4e3fd3e0
Notes: github-actions[bot] 2025-10-13 12:23:37 +00:00
6 changed files with 43 additions and 22 deletions

View file

@ -13,6 +13,7 @@
#include <LibWeb/DOM/Node.h>
#include <LibWeb/Export.h>
#include <LibWeb/Selection/Selection.h>
#include <LibWeb/TrustedTypes/TrustedHTML.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::DOM {
@ -91,7 +92,7 @@ public:
void set_associated_selection(Badge<Selection::Selection>, GC::Ptr<Selection::Selection>);
WebIDL::ExceptionOr<GC::Ref<DocumentFragment>> create_contextual_fragment(String const& fragment);
WebIDL::ExceptionOr<GC::Ref<DocumentFragment>> create_contextual_fragment(TrustedTypes::TrustedHTMLOrString const& fragment);
template<typename Callback>
void for_each_contained(Callback callback) const