mshtml: Added edge compatibility mode support.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-04-24 15:19:19 +02:00 committed by Alexandre Julliard
parent f6b2ccc54b
commit cad03646c5
2 changed files with 9 additions and 1 deletions

View File

@ -371,10 +371,17 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
{
int v = 0;
static const WCHAR edgeW[] = {'e','d','g','e',0};
if(p[0] != 'I' || p[1] != 'E' || p[2] != '=')
return FALSE;
p += 3;
if(!strcmpiW(p, edgeW)) {
*r = COMPAT_MODE_IE11;
return TRUE;
}
while('0' <= *p && *p <= '9')
v = v*10 + *(p++)-'0';
if(*p || !v)

View File

@ -3471,6 +3471,7 @@ static void run_js_tests(void)
run_script_as_http_with_mode("documentmode.js", "?9", "9");
run_script_as_http_with_mode("documentmode.js", "?10", "10");
run_script_as_http_with_mode("documentmode.js", "?11", "11");
run_script_as_http_with_mode("documentmode.js", "?11", "edge");
run_script_as_http_with_mode("asyncscriptload.js", NULL, "9");
}