Commit ce80f1e4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added separated IE5 and quicks mode compatibility mode.

parent 97e26006
...@@ -2997,7 +2997,7 @@ static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR * ...@@ -2997,7 +2997,7 @@ static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR *
TRACE("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
*p = SysAllocString(This->doc_node->document_mode == COMPAT_MODE_QUIRKS ? BackCompatW : CSS1CompatW); *p = SysAllocString(This->doc_node->document_mode <= COMPAT_MODE_IE5 ? BackCompatW : CSS1CompatW);
return *p ? S_OK : E_OUTOFMEMORY; return *p ? S_OK : E_OUTOFMEMORY;
} }
...@@ -3098,6 +3098,7 @@ static HRESULT WINAPI HTMLDocument6_get_documentMode(IHTMLDocument6 *iface, VARI ...@@ -3098,6 +3098,7 @@ static HRESULT WINAPI HTMLDocument6_get_documentMode(IHTMLDocument6 *iface, VARI
static const int docmode_values[] = { static const int docmode_values[] = {
5, /* DOCMODE_QUIRKS */ 5, /* DOCMODE_QUIRKS */
5, /* DOCMODE_IE5 */
7, /* DOCMODE_IE7 */ 7, /* DOCMODE_IE7 */
8, /* DOCMODE_IE8 */ 8, /* DOCMODE_IE8 */
9, /* DOCMODE_IE8 */ 9, /* DOCMODE_IE8 */
......
...@@ -233,6 +233,7 @@ TID_LIST ...@@ -233,6 +233,7 @@ TID_LIST
typedef enum { typedef enum {
COMPAT_MODE_QUIRKS, COMPAT_MODE_QUIRKS,
COMPAT_MODE_IE5,
COMPAT_MODE_IE7, COMPAT_MODE_IE7,
COMPAT_MODE_IE8, COMPAT_MODE_IE8,
COMPAT_MODE_IE9, COMPAT_MODE_IE9,
......
...@@ -388,6 +388,10 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r) ...@@ -388,6 +388,10 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
return FALSE; return FALSE;
switch(v){ switch(v){
case 5:
case 6:
*r = COMPAT_MODE_IE5;
break;
case 7: case 7:
*r = COMPAT_MODE_IE7; *r = COMPAT_MODE_IE7;
break; break;
...@@ -401,7 +405,7 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r) ...@@ -401,7 +405,7 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
*r = COMPAT_MODE_IE10; *r = COMPAT_MODE_IE10;
break; break;
default: default:
*r = v < 7 ? COMPAT_MODE_QUIRKS : COMPAT_MODE_IE11; *r = v < 5 ? COMPAT_MODE_QUIRKS : COMPAT_MODE_IE11;
} }
return TRUE; return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment