mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
19 lines
449 B
Plaintext
19 lines
449 B
Plaintext
#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);
|
|
};
|