mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
parent
c6aadc5bcc
commit
86282022bd
2 changed files with 2 additions and 11 deletions
|
@ -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().as_slice().to_string()
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-document-content_type
|
||||
|
|
|
@ -219,21 +219,12 @@
|
|||
[paras[4\].firstElementChild]
|
||||
expected: FAIL
|
||||
|
||||
[document.characterSet]
|
||||
expected: FAIL
|
||||
|
||||
[document.inputEncoding]
|
||||
expected: FAIL
|
||||
|
||||
[foreignDoc.characterSet]
|
||||
expected: FAIL
|
||||
|
||||
[foreignDoc.inputEncoding]
|
||||
expected: FAIL
|
||||
|
||||
[xmlDoc.characterSet]
|
||||
expected: FAIL
|
||||
|
||||
[xmlDoc.inputEncoding]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue