ladybird/Userland/Libraries/LibWeb/HTML/DOMParser.idl
Luke Wilde 10581cfaeb LibWeb: Use DOMParserSupportedType enum for DOMParser.parseFromString
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.
2022-02-19 21:27:08 +01:00

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);
};