diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-12-06 07:31:01 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-12-06 07:31:01 -0700 |
commit | b805e74fef57e5bec167b2dc6403f9f5e7fc92e7 (patch) | |
tree | 49181eaf5969fa95ce791c7786ae2a9cfc6e156f /components/script/dom/document.rs | |
parent | 2d0e96e1331668fea7313efd688fe7dba6d7ebed (diff) | |
parent | 2bd1269b020f439ae4954c18605234a4f2e7ecdc (diff) | |
download | servo-b805e74fef57e5bec167b2dc6403f9f5e7fc92e7.tar.gz servo-b805e74fef57e5bec167b2dc6403f9f5e7fc92e7.zip |
auto merge of #4265 : ProgramFOX/servo/issue-4251, r=Ms2ger
Resolves #4251
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index fad44638f64..8a4beae9dc4 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -413,7 +413,7 @@ impl Document { // http://dom.spec.whatwg.org/#concept-document-quirks quirks_mode: Cell::new(NoQuirks), // http://dom.spec.whatwg.org/#concept-document-encoding - encoding_name: DOMRefCell::new("utf-8".to_string()), + encoding_name: DOMRefCell::new("UTF-8".to_string()), is_html_document: is_html_document == HTMLDocument, images: Default::default(), embeds: Default::default(), @@ -506,7 +506,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> { // http://dom.spec.whatwg.org/#dom-document-characterset fn CharacterSet(self) -> DOMString { - self.encoding_name.borrow().as_slice().to_ascii_lower() + self.encoding_name.borrow().clone() } // http://dom.spec.whatwg.org/#dom-document-content_type |