Implemented Document#inputEncoding

Resolves #4252
This commit is contained in:
ProgramFOX 2014-12-08 18:22:29 +01:00
parent b805e74fef
commit 6104d5105f
8 changed files with 6 additions and 261 deletions

View file

@ -509,6 +509,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;