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
efb08f26
Commit
efb08f26
authored
Sep 24, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument::get_charset implementation.
parent
514e65c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+13
-2
dom.c
dlls/mshtml/tests/dom.c
+7
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
efb08f26
...
...
@@ -729,8 +729,19 @@ static HRESULT WINAPI HTMLDocument_put_charset(IHTMLDocument2 *iface, BSTR v)
static
HRESULT
WINAPI
HTMLDocument_get_charset
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
impl_from_IHTMLDocument2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
charset_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
doc_node
->
nsdoc
)
{
FIXME
(
"NULL nsdoc
\n
"
);
return
E_FAIL
;
}
nsAString_Init
(
&
charset_str
,
NULL
);
nsres
=
nsIDOMHTMLDocument_GetCharacterSet
(
This
->
doc_node
->
nsdoc
,
&
charset_str
);
return
return_nsstr
(
nsres
,
&
charset_str
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_put_defaultCharset
(
IHTMLDocument2
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
efb08f26
...
...
@@ -4745,6 +4745,7 @@ static void test_defaults(IHTMLDocument2 *doc)
IHTMLElement2
*
elem2
;
IHTMLElement
*
elem
;
IHTMLStyle
*
style
;
BSTR
str
;
LONG
l
;
HRESULT
hres
;
IHTMLElementCollection
*
collection
;
...
...
@@ -4819,6 +4820,12 @@ static void test_defaults(IHTMLDocument2 *doc)
test_ifaces
((
IUnknown
*
)
style
,
style_iids
);
IHTMLStyle_Release
(
style
);
str
=
NULL
;
hres
=
IHTMLDocument2_get_charset
(
doc
,
&
str
);
ok
(
hres
==
S_OK
,
"get_charset failed: %08x
\n
"
,
hres
);
ok
(
str
&&
*
str
,
"charset is empty"
);
/* FIXME: better tests */
SysFreeString
(
str
);
test_window
(
doc
);
test_compatmode
(
doc
);
test_location
(
doc
);
...
...
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