mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Merge pull request #2996 from hazz/document-compatmode
Return 'BackCompat' for document.compatMode only if in quirksmode; r=Ms2ger
This commit is contained in:
commit
db507cab65
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