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
a9ebca28
Commit
a9ebca28
authored
Jun 24, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement HTMLElement_setAttribute.
parent
6c6e4515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
htmlelem.c
dlls/mshtml/htmlelem.c
+34
-2
No files found.
dlls/mshtml/htmlelem.c
View file @
a9ebca28
...
@@ -135,8 +135,40 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
...
@@ -135,8 +135,40 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
VARIANT
AttributeValue
,
LONG
lFlags
)
VARIANT
AttributeValue
,
LONG
lFlags
)
{
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
FIXME
(
"(%p)->(%s . %08x)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
lFlags
);
nsAString
attr_str
;
return
E_NOTIMPL
;
nsAString
value_str
;
nsresult
nsres
;
HRESULT
hres
;
VARIANT
AttributeValueChanged
;
WARN
(
"(%p)->(%s . %08x)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
lFlags
);
VariantInit
(
&
AttributeValueChanged
);
hres
=
VariantChangeType
(
&
AttributeValueChanged
,
&
AttributeValue
,
0
,
VT_BSTR
);
if
(
FAILED
(
hres
))
{
WARN
(
"couldn't convert input attribute value %d to VT_BSTR
\n
"
,
V_VT
(
&
AttributeValue
));
return
hres
;
}
nsAString_Init
(
&
attr_str
,
strAttributeName
);
nsAString_Init
(
&
value_str
,
V_BSTR
(
&
AttributeValueChanged
));
TRACE
(
"setting %s to %s
\n
"
,
debugstr_w
(
strAttributeName
),
debugstr_w
(
V_BSTR
(
&
AttributeValueChanged
)));
nsres
=
nsIDOMHTMLElement_SetAttribute
(
This
->
nselem
,
&
attr_str
,
&
value_str
);
nsAString_Finish
(
&
attr_str
);
nsAString_Finish
(
&
value_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
hres
=
S_OK
;
}
else
{
ERR
(
"SetAttribute failed: %08x
\n
"
,
nsres
);
hres
=
E_FAIL
;
}
return
hres
;
}
}
static
HRESULT
WINAPI
HTMLElement_getAttribute
(
IHTMLElement
*
iface
,
BSTR
strAttributeName
,
static
HRESULT
WINAPI
HTMLElement_getAttribute
(
IHTMLElement
*
iface
,
BSTR
strAttributeName
,
...
...
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