Serenity Operating System
1#import <DOM/Document.idl>
2
3enum DOMParserSupportedType {
4 "text/html",
5 "text/xml",
6 "application/xml",
7 "application/xhtml+xml",
8 "image/svg+xml"
9};
10
11// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser
12[Exposed=Window]
13interface DOMParser {
14 constructor();
15
16 Document parseFromString(DOMString string, DOMParserSupportedType type);
17};