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
c7417e45
Commit
c7417e45
authored
Aug 28, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument2::get_scripts implementation.
parent
8c4e9ba4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
2 deletions
+35
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+27
-2
dom.c
dlls/mshtml/tests/dom.c
+8
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
c7417e45
...
...
@@ -406,8 +406,33 @@ static HRESULT WINAPI HTMLDocument_get_title(IHTMLDocument2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument_get_scripts
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsIDOMHTMLCollection
*
nscoll
=
NULL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_INVALIDARG
;
*
p
=
NULL
;
if
(
!
This
->
doc_node
->
nsdoc
)
{
WARN
(
"NULL nsdoc
\n
"
);
return
E_UNEXPECTED
;
}
nsres
=
nsIDOMHTMLDocument_GetScripts
(
This
->
doc_node
->
nsdoc
,
&
nscoll
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetImages failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
if
(
nscoll
)
{
*
p
=
create_collection_from_htmlcol
(
This
->
doc_node
,
nscoll
);
nsIDOMHTMLCollection_Release
(
nscoll
);
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLDocument_put_designMode
(
IHTMLDocument2
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
c7417e45
...
...
@@ -6075,6 +6075,14 @@ static void test_elems(IHTMLDocument2 *doc)
IHTMLElementCollection_Release
(
collection
);
}
hres
=
IHTMLDocument2_get_scripts
(
doc
,
&
collection
);
ok
(
hres
==
S_OK
,
"get_scripts failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_OK
)
{
static
const
elem_type_t
script_types
[]
=
{
ET_SCRIPT
};
test_elem_collection
((
IUnknown
*
)
collection
,
script_types
,
1
);
IHTMLElementCollection_Release
(
collection
);
}
test_plugins_col
(
doc
);
elem
=
get_doc_elem
(
doc
);
...
...
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