ladybird/Libraries/LibWeb/HTML/DOMParser.idl
Tete17 42284f8006 LibWeb: Modify DomParser parseFromString to accept TrustedHTML
We made the internal changes to accept this new type, but we forgot to
expose it.
2025-12-01 09:54:04 +01:00

18 lines
449 B
Text

#import <DOM/Document.idl>
#import <TrustedTypes/TrustedHTML.idl>
enum DOMParserSupportedType {
"text/html",
"text/xml",
"application/xml",
"application/xhtml+xml",
"image/svg+xml"
};
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser
[Exposed=Window]
interface DOMParser {
constructor();
Document parseFromString((TrustedHTML or Utf16DOMString) string, DOMParserSupportedType type);
};