auto merge of #4270 : ProgramFOX/servo/issue-4252, r=saneyuki

Resolves #4252
This commit is contained in:
bors-servo 2014-12-08 13:28:12 -07:00
commit feabaf34ac
8 changed files with 6 additions and 261 deletions

View file

@ -518,6 +518,11 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
self.encoding_name.borrow().clone()
}
// http://dom.spec.whatwg.org/#dom-document-inputencoding
fn InputEncoding(self) -> DOMString {
self.encoding_name.borrow().clone()
}
// http://dom.spec.whatwg.org/#dom-document-content_type
fn ContentType(self) -> DOMString {
self.content_type.clone()

View file

@ -16,6 +16,7 @@ interface Document : Node {
readonly attribute DOMString documentURI;
readonly attribute DOMString compatMode;
readonly attribute DOMString characterSet;
readonly attribute DOMString inputEncoding;
readonly attribute DOMString contentType;
readonly attribute DocumentType? doctype;