mshtml: Parse X-UA-Compatible correctly.
commitefdfd328067225134bf7263928fa0a4fd58e1a40
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Thu, 14 Jul 2022 18:18:07 +0000 (14 21:18 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 15 Jul 2022 18:17:36 +0000 (15 20:17 +0200)
treed2f622996c349ab7f5720e586f4b9b5a494d47c6
parent3301a8e3128b1828493b450207fa6a2a2125807e
mshtml: Parse X-UA-Compatible correctly.

There can be multiple compat modes defined, separated by commas, but also
surrounded by whitespace. The highest mode in the list is picked as the
document mode, with 'edge' being the highest mode available.

It stops as soon as an invalid mode is found in the list and returns whatever
highest mode was found until then.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
dlls/mshtml/main.c
dlls/mshtml/mshtml_private.h
dlls/mshtml/mutation.c
dlls/mshtml/tests/dom.c