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
fa2f0665
Commit
fa2f0665
authored
Oct 14, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLOptionElement::put_text implementation.
parent
108bb7af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
2 deletions
+47
-2
htmloption.c
dlls/mshtml/htmloption.c
+47
-2
No files found.
dlls/mshtml/htmloption.c
View file @
fa2f0665
...
@@ -189,8 +189,53 @@ static HRESULT WINAPI HTMLOptionElement_get_index(IHTMLOptionElement *iface, LON
...
@@ -189,8 +189,53 @@ static HRESULT WINAPI HTMLOptionElement_get_index(IHTMLOptionElement *iface, LON
static
HRESULT
WINAPI
HTMLOptionElement_put_text
(
IHTMLOptionElement
*
iface
,
BSTR
v
)
static
HRESULT
WINAPI
HTMLOptionElement_put_text
(
IHTMLOptionElement
*
iface
,
BSTR
v
)
{
{
HTMLOptionElement
*
This
=
HTMLOPTION_THIS
(
iface
);
HTMLOptionElement
*
This
=
HTMLOPTION_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
nsIDOMDocument
*
nsdoc
;
return
E_NOTIMPL
;
nsIDOMText
*
text_node
;
nsAString
text_str
;
nsIDOMNode
*
tmp
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
while
(
1
)
{
nsIDOMNode
*
child
;
nsres
=
nsIDOMHTMLOptionElement_GetFirstChild
(
This
->
nsoption
,
&
child
);
if
(
NS_FAILED
(
nsres
)
||
!
child
)
break
;
nsres
=
nsIDOMHTMLOptionElement_RemoveChild
(
This
->
nsoption
,
child
,
&
tmp
);
nsIDOMNode_Release
(
child
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNode_Release
(
tmp
);
}
else
{
ERR
(
"RemoveChild failed: %08x
\n
"
,
nsres
);
break
;
}
}
nsres
=
nsIWebNavigation_GetDocument
(
This
->
element
.
node
.
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsAString_Init
(
&
text_str
,
v
);
nsres
=
nsIDOMDocument_CreateTextNode
(
nsdoc
,
&
text_str
,
&
text_node
);
nsIDOMDocument_Release
(
nsdoc
);
nsAString_Finish
(
&
text_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"CreateTextNode failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsres
=
nsIDOMHTMLOptionElement_AppendChild
(
This
->
nsoption
,
(
nsIDOMNode
*
)
text_node
,
&
tmp
);
if
(
NS_SUCCEEDED
(
nsres
))
nsIDOMNode_Release
(
tmp
);
else
ERR
(
"AppendChild failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
HTMLOptionElement_get_text
(
IHTMLOptionElement
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLOptionElement_get_text
(
IHTMLOptionElement
*
iface
,
BSTR
*
p
)
...
...
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