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
d538e86a
Commit
d538e86a
authored
Apr 19, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use variant_to_nsstr in IHTMLDOMNode3::put_textContent.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
15933644
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-6
elements.js
dlls/mshtml/tests/elements.js
+5
-0
No files found.
dlls/mshtml/htmlnode.c
View file @
d538e86a
...
...
@@ -1245,12 +1245,7 @@ static HRESULT WINAPI HTMLDOMNode3_put_textContent(IHTMLDOMNode3 *iface, VARIANT
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
if
(
V_VT
(
&
v
)
!=
VT_BSTR
)
{
FIXME
(
"unsupported argument %s
\n
"
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
nsAString_Init
(
&
nsstr
,
V_BSTR
(
&
v
));
variant_to_nsstr
(
&
v
,
FALSE
,
&
nsstr
);
nsres
=
nsIDOMNode_SetTextContent
(
This
->
nsnode
,
&
nsstr
);
nsAString_Finish
(
&
nsstr
);
if
(
NS_FAILED
(
nsres
))
{
...
...
dlls/mshtml/tests/elements.js
View file @
d538e86a
...
...
@@ -77,6 +77,11 @@ function test_textContent() {
ok
(
div
.
textContent
===
""
,
"div.textContent = "
+
div
.
textContent
);
ok
(
div
.
childNodes
.
length
===
0
,
"div.childNodes.length = "
+
div
.
childNodes
.
length
);
div
.
textContent
=
null
;
ok
(
div
.
textContent
===
""
,
"div.textContent = "
+
div
.
textContent
);
div
.
textContent
=
11
;
ok
(
div
.
textContent
===
"11"
,
"div.textContent = "
+
div
.
textContent
);
ok
(
document
.
textContent
===
null
,
"document.textContent = "
+
document
.
textContent
);
next_test
();
...
...
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