DocumentType does not need to know about quirks mode

TSIA. Closes #1498.
This commit is contained in:
Bruno de Oliveira Abinader 2014-01-15 14:39:33 -04:00
parent bf4498f948
commit ef8ce13550
3 changed files with 3 additions and 11 deletions

View file

@ -43,15 +43,13 @@ impl Reflectable for DOMImplementation {
impl DOMImplementation {
// http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
pub fn CreateDocumentType(&self, qname: DOMString, pubid: DOMString, sysid: DOMString) -> Fallible<AbstractNode> {
// FIXME: To be removed in https://github.com/mozilla/servo/issues/1498
let force_quirks : bool = false;
match xml_name_type(qname) {
// Step 1.
InvalidXMLName => Err(InvalidCharacter),
// Step 2.
Name => Err(NamespaceError),
// Step 3.
QName => Ok(DocumentType::new(qname, Some(pubid), Some(sysid), force_quirks, self.owner.Document()))
QName => Ok(DocumentType::new(qname, Some(pubid), Some(sysid), self.owner.Document()))
}
}
}