aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-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 8a4beae9dc4..7995b438a4c 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -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()
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;