Remove unsupported types from the SupportedType IDL enum.

This commit is contained in:
Ms2ger 2015-02-28 15:48:48 +01:00
parent 55f7636549
commit 3dac90b49e
2 changed files with 2 additions and 6 deletions

View file

@ -7,7 +7,6 @@ use dom::bindings::codegen::Bindings::DOMParserBinding;
use dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods; use dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods;
use dom::bindings::codegen::Bindings::DOMParserBinding::SupportedType::{Text_html, Text_xml}; use dom::bindings::codegen::Bindings::DOMParserBinding::SupportedType::{Text_html, Text_xml};
use dom::bindings::error::Fallible; use dom::bindings::error::Fallible;
use dom::bindings::error::Error::FailureUnknown;
use dom::bindings::global::GlobalRef; use dom::bindings::global::GlobalRef;
use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::js::{JS, JSRef, Temporary};
use dom::bindings::utils::{Reflector, reflect_dom_object}; use dom::bindings::utils::{Reflector, reflect_dom_object};
@ -69,9 +68,6 @@ impl<'a> DOMParserMethods for JSRef<'a, DOMParser> {
Some(content_type), Some(content_type),
DocumentSource::NotFromParser)) DocumentSource::NotFromParser))
} }
_ => {
Err(FailureUnknown)
}
} }
} }
} }

View file

@ -8,10 +8,10 @@
enum SupportedType { enum SupportedType {
"text/html", "text/html",
"text/xml", "text/xml"/*,
"application/xml", "application/xml",
"application/xhtml+xml", "application/xhtml+xml",
"image/svg+xml" "image/svg+xml"*/
}; };
[Constructor] [Constructor]