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
1d05cd51
Commit
1d05cd51
authored
Mar 15, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use getElementsByTagNameNS in IHTMLDocument3::getElementsByTagName implementation.
parent
c6005aab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
htmldoc3.c
dlls/mshtml/htmldoc3.c
+2
-5
dom.c
dlls/mshtml/tests/dom.c
+1
-1
No files found.
dlls/mshtml/htmldoc3.c
View file @
1d05cd51
...
...
@@ -566,9 +566,8 @@ static HRESULT WINAPI HTMLDocument3_getElementsByTagName(IHTMLDocument3 *iface,
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument3
(
iface
);
nsIDOMNodeList
*
nslist
;
nsAString
id_str
,
ns_str
;
nsAString
id_str
;
nsresult
nsres
;
static
const
WCHAR
str
[]
=
{
'*'
,
0
};
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
v
),
pelColl
);
...
...
@@ -578,10 +577,8 @@ static HRESULT WINAPI HTMLDocument3_getElementsByTagName(IHTMLDocument3 *iface,
}
nsAString_InitDepend
(
&
id_str
,
v
);
nsAString_InitDepend
(
&
ns_str
,
str
);
nsres
=
nsIDOMHTMLDocument_GetElementsByTagNameNS
(
This
->
doc_node
->
nsdoc
,
&
ns_str
,
&
id_str
,
&
nslist
);
nsres
=
nsIDOMHTMLDocument_GetElementsByTagName
(
This
->
doc_node
->
nsdoc
,
&
id_str
,
&
nslist
);
nsAString_Finish
(
&
id_str
);
nsAString_Finish
(
&
ns_str
);
if
(
FAILED
(
nsres
))
{
ERR
(
"GetElementByName failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
...
...
dlls/mshtml/tests/dom.c
View file @
1d05cd51
...
...
@@ -6281,7 +6281,7 @@ static void test_elems(IHTMLDocument2 *doc)
hres
=
IHTMLDocument2_QueryInterface
(
doc
,
&
IID_IHTMLDocument3
,
(
void
**
)
&
doc3
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLDocument3 iface: %08x
\n
"
,
hres
);
str
=
a2bstr
(
"
i
mg"
);
str
=
a2bstr
(
"
I
mg"
);
hres
=
IHTMLDocument3_getElementsByTagName
(
doc3
,
str
,
&
col
);
ok
(
hres
==
S_OK
,
"getElementsByTagName(%s) failed: %08x
\n
"
,
wine_dbgstr_w
(
str
),
hres
);
SysFreeString
(
str
);
...
...
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