mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
18 lines
449 B
Text
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);
|
|
};
|