Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
be897e2d
Commit
be897e2d
authored
Mar 01, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use SCRIPTLANGUAGEVERSION_5_7 for IE7 and IE5 compatibility mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
667b3f0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
script.c
dlls/mshtml/script.c
+5
-2
documentmode.js
dlls/mshtml/tests/documentmode.js
+20
-0
No files found.
dlls/mshtml/script.c
View file @
be897e2d
...
...
@@ -114,9 +114,10 @@ static void set_script_prop(ScriptHost *script_host, DWORD property, VARIANT *va
static
BOOL
init_script_engine
(
ScriptHost
*
script_host
)
{
compat_mode_t
compat_mode
;
IObjectSafety
*
safety
;
SCRIPTSTATE
state
;
DWORD
supported_opts
=
0
,
enabled_opts
=
0
;
DWORD
supported_opts
=
0
,
enabled_opts
=
0
,
script_mode
;
VARIANT
var
;
HRESULT
hres
;
...
...
@@ -149,8 +150,10 @@ static BOOL init_script_engine(ScriptHost *script_host)
if
(
FAILED
(
hres
))
return
FALSE
;
compat_mode
=
lock_document_mode
(
script_host
->
window
->
doc
);
script_mode
=
compat_mode
<
COMPAT_MODE_IE8
?
SCRIPTLANGUAGEVERSION_5_7
:
SCRIPTLANGUAGEVERSION_5_8
;
V_VT
(
&
var
)
=
VT_I4
;
V_I4
(
&
var
)
=
lock_document_mode
(
script_host
->
window
->
doc
)
==
COMPAT_MODE_QUIRKS
?
1
:
2
;
V_I4
(
&
var
)
=
script_mode
;
set_script_prop
(
script_host
,
SCRIPTPROP_INVOKEVERSIONING
,
&
var
);
V_VT
(
&
var
)
=
VT_BOOL
;
...
...
dlls/mshtml/tests/documentmode.js
View file @
be897e2d
...
...
@@ -106,6 +106,25 @@ function test_xhr_props() {
next_test
();
}
function
test_javascript
()
{
var
g
=
window
;
function
test_exposed
(
func
,
obj
,
expect
)
{
if
(
expect
)
ok
(
func
in
obj
,
func
+
" not found in "
+
obj
);
else
ok
(
!
(
func
in
obj
),
func
+
" found in "
+
obj
);
}
var
v
=
document
.
documentMode
;
test_exposed
(
"ScriptEngineMajorVersion"
,
g
,
true
);
test_exposed
(
"JSON"
,
g
,
v
>=
8
);
next_test
();
}
function
test_elem_by_id
()
{
document
.
body
.
innerHTML
=
'<form id="testid" name="testname"></form>'
;
...
...
@@ -196,6 +215,7 @@ var tests = [
test_elem_props
,
test_doc_props
,
test_window_props
,
test_javascript
,
test_xhr_props
,
test_elem_by_id
,
test_conditional_comments
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment