From f343235c6e8f34cb19af660458832f40655973db Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 15 Apr 2021 18:49:56 +0200 Subject: [PATCH] mshtml: Fix DISPID_IE8_ELEMENTMAX define. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/tests/documentmode.js | 2 ++ include/mshtmdid.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 82f8aae4ed9..dfaaff44096 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -33,6 +33,7 @@ sync_test("elem_props", function() { test_exposed("doScroll", v < 11); test_exposed("readyState", v < 11); + test_exposed("clientTop", true); test_exposed("querySelectorAll", v >= 8); test_exposed("textContent", v >= 9); test_exposed("prefix", v >= 9); @@ -41,6 +42,7 @@ sync_test("elem_props", function() { test_exposed("getElementsByClassName", v >= 9); test_exposed("removeAttributeNS", v >= 9); test_exposed("addEventListener", v >= 9); + if (v != 8 /* todo_wine */) test_exposed("hasAttribute", v >= 8); test_exposed("removeEventListener", v >= 9); test_exposed("dispatchEvent", v >= 9); test_exposed("msSetPointerCapture", v >= 10); diff --git a/include/mshtmdid.h b/include/mshtmdid.h index 28d114da81d..31e75709db6 100644 --- a/include/mshtmdid.h +++ b/include/mshtmdid.h @@ -249,7 +249,7 @@ #define DISPID_IE8_SELECT DISPID_IE8_NORMAL_FIRST #define DISPID_IE8_ELEMENTBASE (DISPID_ELEMENT+200) -#define DISPID_IE8_ELEMENTMAX (DISPID_SITE-1) +#define DISPID_IE8_ELEMENTMAX (DISPID_IE8_ELEMENTBASE+40) #define DISPID_IE8_ELEMENT DISPID_IE8_ELEMENTBASE #define DISPID_IE8_FRAMESITEBASE (DISPID_FRAMESITE+1120)