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