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
6314becd
Commit
6314becd
authored
Jun 24, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLElement::put_title implementation.
parent
f911e240
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+12
-2
dom.c
dlls/mshtml/tests/dom.c
+17
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
6314becd
...
...
@@ -594,8 +594,18 @@ static HRESULT WINAPI HTMLElement_get_document(IHTMLElement *iface, IDispatch **
static
HRESULT
WINAPI
HTMLElement_put_title
(
IHTMLElement
*
iface
,
BSTR
v
)
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
nsAString
title_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
nsAString_Init
(
&
title_str
,
v
);
nsres
=
nsIDOMHTMLElement_SetTitle
(
This
->
nselem
,
&
title_str
);
nsAString_Finish
(
&
title_str
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetTitle failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLElement_get_title
(
IHTMLElement
*
iface
,
BSTR
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
6314becd
...
...
@@ -1108,6 +1108,21 @@ static void _test_elem_title(unsigned line, IUnknown *unk, const char *extitle)
SysFreeString
(
title
);
}
#define test_elem_set_title(u,t) _test_elem_set_title(__LINE__,u,t)
static
void
_test_elem_set_title
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
title
)
{
IHTMLElement
*
elem
=
_get_elem_iface
(
line
,
unk
);
BSTR
tmp
;
HRESULT
hres
;
tmp
=
a2bstr
(
title
);
hres
=
IHTMLElement_put_title
(
elem
,
tmp
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_title failed: %08x
\n
"
,
hres
);
IHTMLElement_Release
(
elem
);
SysFreeString
(
tmp
);
}
#define test_node_get_value_str(u,e) _test_node_get_value_str(__LINE__,u,e)
static
void
_test_node_get_value_str
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exval
)
{
...
...
@@ -2004,6 +2019,8 @@ static void test_elems(IHTMLDocument2 *doc)
test_select_elem
(
select
);
test_elem_title
((
IUnknown
*
)
select
,
NULL
);
test_elem_set_title
((
IUnknown
*
)
select
,
"Title"
);
test_elem_title
((
IUnknown
*
)
select
,
"Title"
);
node
=
get_first_child
((
IUnknown
*
)
select
);
ok
(
node
!=
NULL
,
"node == NULL
\n
"
);
...
...
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