aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-12-08 13:28:12 -0700
committerbors-servo <metajack+bors@gmail.com>2014-12-08 13:28:12 -0700
commitfeabaf34acfc41c0976acdff5e4df15a135d1b09 (patch)
treea03c3e59a471a9f60824acd8b85a621e271679e2 /components
parentf11089cda0564a826ed53949a4b39d519944e28a (diff)
parent6104d5105fb62c7cf55852f04c433411d49d076f (diff)
downloadservo-feabaf34acfc41c0976acdff5e4df15a135d1b09.tar.gz
servo-feabaf34acfc41c0976acdff5e4df15a135d1b09.zip
auto merge of #4270 : ProgramFOX/servo/issue-4252, r=saneyuki
Resolves #4252
Diffstat (limited to 'components')
-rw-r--r--components/script/dom/document.rs5
-rw-r--r--components/script/dom/webidls/Document.webidl1
2 files changed, 6 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 84016cf75fa..4fbdaab837d 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -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()
diff --git a/components/script/dom/webidls/Document.webidl b/components/script/dom/webidls/Document.webidl
index 9a9272ac824..8d75f20a8f7 100644
--- a/components/script/dom/webidls/Document.webidl
+++ b/components/script/dom/webidls/Document.webidl
@@ -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;