LibWeb: Add "allow declarative shadow roots" flag to Document

This commit is contained in:
Andreas Kling
2024-06-25 09:41:35 +02:00
committed by Andreas Kling
parent 637ccbec35
commit f3070118b1
3 changed files with 23 additions and 1 deletions

View File

@@ -246,6 +246,9 @@ WebIDL::ExceptionOr<BrowsingContext::BrowsingContextAndDocument> BrowsingContext
// about base URL: creatorBaseURL
document->set_about_base_url(creator_base_url);
// allow declarative shadow roots: true
document->set_allow_declarative_shadow_roots(true);
// 16. If creator is non-null, then:
if (creator) {
// 1. Set document's referrer to the serialization of creator's URL.