mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03:00
10581cfaeb
Previously it would accept any DOMString, as we didn't support enums at the time. Now it will only accept what's specified in the DOMParserSupportedType enum. This also adds spec comments to DOMParser::parse_from_string.
16 lines
289 B
Plaintext
16 lines
289 B
Plaintext
#import <DOM/Document.idl>
|
|
|
|
enum DOMParserSupportedType {
|
|
"text/html",
|
|
"text/xml",
|
|
"application/xml",
|
|
"application/xhtml+xml",
|
|
"image/svg+xml"
|
|
};
|
|
|
|
interface DOMParser {
|
|
constructor();
|
|
|
|
Document parseFromString(DOMString string, DOMParserSupportedType type);
|
|
};
|