mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Return 'BackCompat' for document.compatMode only if in quirksmode
This commit is contained in:
parent
05f62f7cf0
commit
a111b8d534
1 changed files with 2 additions and 2 deletions
|
@ -305,8 +305,8 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
||||||
// http://dom.spec.whatwg.org/#dom-document-compatmode
|
// http://dom.spec.whatwg.org/#dom-document-compatmode
|
||||||
fn CompatMode(&self) -> DOMString {
|
fn CompatMode(&self) -> DOMString {
|
||||||
match self.quirks_mode.deref().get() {
|
match self.quirks_mode.deref().get() {
|
||||||
NoQuirks => "CSS1Compat".to_string(),
|
LimitedQuirks | NoQuirks => "CSS1Compat".to_string(),
|
||||||
LimitedQuirks | FullQuirks => "BackCompat".to_string()
|
FullQuirks => "BackCompat".to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue