Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d3ed68af
Commit
d3ed68af
authored
Sep 14, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed getElementsByTagName for comment elements.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7020f47e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+5
-0
dom.c
dlls/mshtml/tests/dom.c
+2
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
d3ed68af
...
@@ -3101,6 +3101,11 @@ static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BS
...
@@ -3101,6 +3101,11 @@ static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BS
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
v
),
pelColl
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_w
(
v
),
pelColl
);
if
(
!
This
->
nselem
)
{
*
pelColl
=
create_collection_from_htmlcol
(
This
->
node
.
doc
,
NULL
);
return
S_OK
;
}
nsAString_InitDepend
(
&
tag_str
,
v
);
nsAString_InitDepend
(
&
tag_str
,
v
);
nsres
=
nsIDOMHTMLElement_GetElementsByTagName
(
This
->
nselem
,
&
tag_str
,
&
nscol
);
nsres
=
nsIDOMHTMLElement_GetElementsByTagName
(
This
->
nselem
,
&
tag_str
,
&
nscol
);
nsAString_Finish
(
&
tag_str
);
nsAString_Finish
(
&
tag_str
);
...
...
dlls/mshtml/tests/dom.c
View file @
d3ed68af
...
@@ -9468,6 +9468,8 @@ static void test_create_elems(IHTMLDocument2 *doc)
...
@@ -9468,6 +9468,8 @@ static void test_create_elems(IHTMLDocument2 *doc)
test_comment_text
((
IUnknown
*
)
node2
,
"<!--testing-->"
);
test_comment_text
((
IUnknown
*
)
node2
,
"<!--testing-->"
);
IHTMLDOMNode_Release
(
node2
);
IHTMLDOMNode_Release
(
node2
);
test_elem_getelembytag
((
IUnknown
*
)
comment
,
ET_COMMENT
,
0
,
NULL
);
IHTMLDOMNode_Release
(
comment
);
IHTMLDOMNode_Release
(
comment
);
}
}
...
...
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