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
86475d5b
Commit
86475d5b
authored
Feb 08, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IE9+ mode support to HTMLFormElement::elements property.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52c74af9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
htmlform.c
dlls/mshtml/htmlform.c
+15
-2
No files found.
dlls/mshtml/htmlform.c
View file @
86475d5b
...
...
@@ -275,11 +275,24 @@ static HRESULT WINAPI HTMLFormElement_get_method(IHTMLFormElement *iface, BSTR *
static
HRESULT
WINAPI
HTMLFormElement_get_elements
(
IHTMLFormElement
*
iface
,
IDispatch
**
p
)
{
HTMLFormElement
*
This
=
impl_from_IHTMLFormElement
(
iface
);
nsIDOMHTMLCollection
*
elements
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
(
IDispatch
*
)
&
This
->
IHTMLFormElement_iface
;
IDispatch_AddRef
(
*
p
);
if
(
dispex_compat_mode
(
&
This
->
element
.
node
.
event_target
.
dispex
)
<
COMPAT_MODE_IE9
)
{
IDispatch_AddRef
(
*
p
=
(
IDispatch
*
)
&
This
->
IHTMLFormElement_iface
);
return
S_OK
;
}
nsres
=
nsIDOMHTMLFormElement_GetElements
(
This
->
nsform
,
&
elements
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetElements failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
*
p
=
(
IDispatch
*
)
create_collection_from_htmlcol
(
This
->
element
.
node
.
doc
,
elements
);
nsIDOMHTMLCollection_Release
(
elements
);
return
S_OK
;
}
...
...
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