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
423b7ba1
Commit
423b7ba1
authored
Mar 30, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDOMAttribute2::get_parentNode implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ad4aeb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
htmlattr.c
dlls/mshtml/htmlattr.c
+5
-2
dom.c
dlls/mshtml/tests/dom.c
+14
-0
No files found.
dlls/mshtml/htmlattr.c
View file @
423b7ba1
...
...
@@ -347,8 +347,11 @@ static HRESULT WINAPI HTMLDOMAttribute2_get_nodeType(IHTMLDOMAttribute2 *iface,
static
HRESULT
WINAPI
HTMLDOMAttribute2_get_parentNode
(
IHTMLDOMAttribute2
*
iface
,
IHTMLDOMNode
**
p
)
{
HTMLDOMAttribute
*
This
=
impl_from_IHTMLDOMAttribute2
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
NULL
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLDOMAttribute2_get_childNodes
(
IHTMLDOMAttribute2
*
iface
,
IDispatch
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
423b7ba1
...
...
@@ -3402,6 +3402,19 @@ static void _test_attr_node_name(unsigned line, IHTMLDOMAttribute *attr, const c
SysFreeString
(
str
);
}
#define test_attr_parent(a) _test_attr_parent(__LINE__,a)
static
void
_test_attr_parent
(
unsigned
line
,
IHTMLDOMAttribute
*
attr
)
{
IHTMLDOMAttribute2
*
attr2
=
_get_attr2_iface
(
line
,
(
IUnknown
*
)
attr
);
IHTMLDOMNode
*
parent
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IHTMLDOMAttribute2_get_parentNode
(
attr2
,
&
parent
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_parentNode failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
!
parent
,
"parent != NULL
\n
"
);
IHTMLDOMAttribute2_Release
(
attr2
);
}
static
void
test_attr_collection_disp
(
IDispatch
*
disp
)
{
IDispatchEx
*
dispex
;
...
...
@@ -8522,6 +8535,7 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem)
test_ifaces
((
IUnknown
*
)
attr
,
attr_iids
);
test_no_iface
((
IUnknown
*
)
attr
,
&
IID_IHTMLDOMNode
);
test_attr_specified
(
attr
,
VARIANT_TRUE
);
test_attr_parent
(
attr
);
attr2
=
get_elem_attr_node
((
IUnknown
*
)
elem
,
"id"
,
TRUE
);
ok
(
iface_cmp
((
IUnknown
*
)
attr
,
(
IUnknown
*
)
attr2
),
"attr != attr2
\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