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
c8cab0d3
Commit
c8cab0d3
authored
Jul 20, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDOMNode3::get_textContent implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd44c7ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
htmlnode.c
dlls/mshtml/htmlnode.c
+8
-2
elements.js
dlls/mshtml/tests/elements.js
+14
-1
No files found.
dlls/mshtml/htmlnode.c
View file @
c8cab0d3
...
...
@@ -1248,8 +1248,14 @@ static HRESULT WINAPI HTMLDOMNode3_put_textContent(IHTMLDOMNode3 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDOMNode3_get_textContent
(
IHTMLDOMNode3
*
iface
,
VARIANT
*
p
)
{
HTMLDOMNode
*
This
=
impl_from_IHTMLDOMNode3
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
nsstr
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
nsstr
,
NULL
);
nsres
=
nsIDOMNode_GetTextContent
(
This
->
nsnode
,
&
nsstr
);
return
return_nsstr_variant
(
nsres
,
&
nsstr
,
p
);
}
static
HRESULT
WINAPI
HTMLDOMNode3_isEqualNode
(
IHTMLDOMNode3
*
iface
,
IHTMLDOMNode3
*
otherNode
,
VARIANT_BOOL
*
isEqual
)
...
...
dlls/mshtml/tests/elements.js
View file @
c8cab0d3
...
...
@@ -59,6 +59,19 @@ function test_input_selection() {
next_test
();
}
function
test_textContent
()
{
var
text
=
document
.
createTextNode
(
"test"
);
ok
(
text
.
textContent
===
"test"
,
"text.textContent = "
+
text
.
textContent
);
var
div
=
document
.
createElement
(
"div"
);
document
.
body
.
appendChild
(
div
);
div
.
innerHTML
=
"abc<script>/* */</script><div>text</div>"
;
ok
(
div
.
textContent
===
"abc/* */text"
,
"div.textContent = "
+
div
.
textContent
);
next_test
();
}
var
tests
=
[
test_input_selection
test_input_selection
,
test_textContent
];
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