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
7ad4aeb7
Commit
7ad4aeb7
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 support for IHTMLDOMAttribute2::get_value on detached attributes.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3ab8d67
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
htmlattr.c
dlls/mshtml/htmlattr.c
+4
-5
dom.c
dlls/mshtml/tests/dom.c
+7
-0
No files found.
dlls/mshtml/htmlattr.c
View file @
7ad4aeb7
...
@@ -310,12 +310,11 @@ static HRESULT WINAPI HTMLDOMAttribute2_get_value(IHTMLDOMAttribute2 *iface, BST
...
@@ -310,12 +310,11 @@ static HRESULT WINAPI HTMLDOMAttribute2_get_value(IHTMLDOMAttribute2 *iface, BST
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
elem
)
{
V_VT
(
&
val
)
=
VT_EMPTY
;
FIXME
(
"NULL This->elem
\n
"
);
if
(
This
->
elem
)
return
E_UNEXPECTED
;
}
hres
=
get_elem_attr_value_by_dispid
(
This
->
elem
,
This
->
dispid
,
&
val
);
hres
=
get_elem_attr_value_by_dispid
(
This
->
elem
,
This
->
dispid
,
&
val
);
else
hres
=
VariantCopy
(
&
val
,
&
This
->
value
);
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
attr_value_to_string
(
&
val
);
hres
=
attr_value_to_string
(
&
val
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
...
...
dlls/mshtml/tests/dom.c
View file @
7ad4aeb7
...
@@ -8610,11 +8610,18 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem)
...
@@ -8610,11 +8610,18 @@ static void test_attr(IHTMLDocument2 *doc, IHTMLElement *elem)
get_attr_node_value
(
attr
,
&
v
,
VT_I4
);
get_attr_node_value
(
attr
,
&
v
,
VT_I4
);
ok
(
V_I4
(
&
v
)
==
1
,
"nodeValue = %d
\n
"
,
V_I4
(
&
v
));
ok
(
V_I4
(
&
v
)
==
1
,
"nodeValue = %d
\n
"
,
V_I4
(
&
v
));
test_attr_value
(
attr
,
"1"
);
V_VT
(
&
v
)
=
VT_EMPTY
;
V_VT
(
&
v
)
=
VT_EMPTY
;
put_attr_node_value
(
attr
,
v
);
put_attr_node_value
(
attr
,
v
);
get_attr_node_value
(
attr
,
&
v
,
VT_EMPTY
);
get_attr_node_value
(
attr
,
&
v
,
VT_EMPTY
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"testing"
);
put_attr_node_value
(
attr
,
v
);
SysFreeString
(
V_BSTR
(
&
v
));
test_attr_value
(
attr
,
"testing"
);
IHTMLDOMAttribute_Release
(
attr
);
IHTMLDOMAttribute_Release
(
attr
);
}
}
...
...
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