2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/Document.idl>
|
2025-10-31 20:35:07 +01:00
|
|
|
#import <TrustedTypes/TrustedHTML.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-02-19 20:01:20 +00:00
|
|
|
enum DOMParserSupportedType {
|
|
|
|
|
"text/html",
|
|
|
|
|
"text/xml",
|
|
|
|
|
"application/xml",
|
|
|
|
|
"application/xhtml+xml",
|
|
|
|
|
"image/svg+xml"
|
|
|
|
|
};
|
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser
|
2023-09-06 14:23:00 +12:00
|
|
|
[Exposed=Window]
|
2021-07-05 05:20:31 +01:00
|
|
|
interface DOMParser {
|
|
|
|
|
constructor();
|
|
|
|
|
|
2025-10-31 20:35:07 +01:00
|
|
|
Document parseFromString((TrustedHTML or Utf16DOMString) string, DOMParserSupportedType type);
|
2021-07-05 05:20:31 +01:00
|
|
|
};
|