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
2c06b800
Commit
2c06b800
authored
Mar 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added beginning of getAttribute implementation.
parent
26b9c5e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
htmlelem.c
dlls/mshtml/htmlelem.c
+27
-3
No files found.
dlls/mshtml/htmlelem.c
View file @
2c06b800
...
@@ -142,9 +142,33 @@ static HRESULT WINAPI HTMLElement_getAttribute(IHTMLElement *iface, BSTR strAttr
...
@@ -142,9 +142,33 @@ static HRESULT WINAPI HTMLElement_getAttribute(IHTMLElement *iface, BSTR strAttr
LONG
lFlags
,
VARIANT
*
AttributeValue
)
LONG
lFlags
,
VARIANT
*
AttributeValue
)
{
{
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
HTMLElement
*
This
=
HTMLELEM_THIS
(
iface
);
FIXME
(
"(%p)->(%s %08lx %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
lFlags
,
nsAString
attr_str
;
AttributeValue
);
nsAString
value_str
;
return
E_NOTIMPL
;
const
PRUnichar
*
value
;
nsresult
nsres
;
HRESULT
hres
=
S_OK
;
WARN
(
"(%p)->(%s %08lx %p)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
lFlags
,
AttributeValue
);
nsAString_Init
(
&
attr_str
,
strAttributeName
);
nsAString_Init
(
&
value_str
,
NULL
);
nsres
=
nsIDOMHTMLElement_GetAttribute
(
This
->
nselem
,
&
attr_str
,
&
value_str
);
nsAString_Finish
(
&
attr_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
value_str
,
&
value
,
NULL
);
V_VT
(
AttributeValue
)
=
VT_BSTR
;
V_BSTR
(
AttributeValue
)
=
SysAllocString
(
value
);;
TRACE
(
"attr_value=%s
\n
"
,
debugstr_w
(
V_BSTR
(
AttributeValue
)));
}
else
{
ERR
(
"GetAttribute failed: %08lx
\n
"
,
nsres
);
hres
=
E_FAIL
;
}
nsAString_Finish
(
&
value_str
);
return
hres
;
}
}
static
HRESULT
WINAPI
HTMLElement_removeAttribute
(
IHTMLElement
*
iface
,
BSTR
strAttributeName
,
static
HRESULT
WINAPI
HTMLElement_removeAttribute
(
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