summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/DOMParser.idl
blob: bfe112d109b08257b36f68de4cabeac3f0332486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import <DOM/Document.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(DOMString string, DOMParserSupportedType type);
};