Skip to content

Commit

Permalink
Return 'BackCompat' for document.compatMode only if in quirksmode
Browse files Browse the repository at this point in the history
  • Loading branch information
hmac committed Aug 4, 2014
1 parent 05f62f7 commit a111b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/script/dom/document.rs
Expand Up @@ -305,8 +305,8 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
// http://dom.spec.whatwg.org/#dom-document-compatmode
fn CompatMode(&self) -> DOMString {
match self.quirks_mode.deref().get() {
NoQuirks => "CSS1Compat".to_string(),
LimitedQuirks | FullQuirks => "BackCompat".to_string()
LimitedQuirks | NoQuirks => "CSS1Compat".to_string(),
FullQuirks => "BackCompat".to_string()
}
}

Expand Down

0 comments on commit a111b8d

Please sign in to comment.