Return 'BackCompat' for document.compatMode only if in quirksmode
Merge pull request #2996 from hazz/document-compatmode

Return 'BackCompat' for document.compatMode only if in quirksmode; r=Ms2ger