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

mshtml: Use case insensitive comparition in parse_ua_compatible.

parent 02506933
......@@ -393,11 +393,12 @@ static BOOL parse_ua_compatible(const WCHAR *p, compat_mode_t *r)
{
int v = 0;
static const WCHAR ie_eqW[] = {'I','E','='};
static const WCHAR edgeW[] = {'e','d','g','e',0};
TRACE("%s\n", debugstr_w(p));
if(p[0] != 'I' || p[1] != 'E' || p[2] != '=')
if(strncmpiW(ie_eqW, p, sizeof(ie_eqW)/sizeof(WCHAR)))
return FALSE;
p += 3;
......
......@@ -3425,7 +3425,7 @@ static void run_script_as_http_with_mode(const char *script, const char *opt, co
" </body>\n"
"</html>\n",
document_mode ? "<!DOCTYPE html>\n" : "",
document_mode ? "<meta http-equiv=\"x-ua-compatible\" content=\"IE=" : "",
document_mode ? "<meta http-equiv=\"x-ua-compatible\" content=\"Ie=" : "",
document_mode ? document_mode : "",
document_mode ? "\">" : "",
script);
......
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