
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.
15 lines
289 B
Text
15 lines
289 B
Text
#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);
|
|
};
|