mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Modify DomParser parseFromString to accept TrustedHTML
We made the internal changes to accept this new type, but we forgot to expose it.
This commit is contained in:
parent
901afee50b
commit
42284f8006
Notes:
github-actions[bot]
2025-12-01 08:55:42 +00:00
Author: https://github.com/tete17
Commit: 42284f8006
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6630
Reviewed-by: https://github.com/gmta ✅
5 changed files with 8 additions and 9 deletions
|
|
@ -39,7 +39,7 @@ void DOMParser::initialize(JS::Realm& realm)
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring
|
||||
WebIDL::ExceptionOr<GC::Root<DOM::Document>> DOMParser::parse_from_string(Utf16String string, Bindings::DOMParserSupportedType type)
|
||||
WebIDL::ExceptionOr<GC::Root<DOM::Document>> DOMParser::parse_from_string(TrustedTypes::TrustedHTMLOrString string, Bindings::DOMParserSupportedType type)
|
||||
{
|
||||
// 1. Let compliantString to the result of invoking the Get Trusted Type compliant string algorithm with
|
||||
// TrustedHTML, this's relevant global object, string, "DOMParser parseFromString", and "script".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue