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
d66dacce
Commit
d66dacce
authored
Apr 18, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Copy filter value in HTMLElement_clone.
parent
120962b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
htmlelem.c
dlls/mshtml/htmlelem.c
+9
-1
jstest.html
dlls/mshtml/tests/jstest.html
+12
-0
No files found.
dlls/mshtml/htmlelem.c
View file @
d66dacce
...
...
@@ -269,7 +269,7 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
DISPPARAMS
dispParams
;
EXCEPINFO
excep
;
TRACE
(
"(%p)->(%s
. %08x)
\n
"
,
This
,
debugstr_w
(
strAttributeNam
e
),
lFlags
);
TRACE
(
"(%p)->(%s
%s %08x)
\n
"
,
This
,
debugstr_w
(
strAttributeName
),
debugstr_variant
(
&
AttributeValu
e
),
lFlags
);
hres
=
IDispatchEx_GetDispID
(
&
This
->
node
.
dispex
.
IDispatchEx_iface
,
strAttributeName
,
fdexNameCaseInsensitive
|
fdexNameEnsure
,
&
dispid
);
...
...
@@ -1627,6 +1627,14 @@ HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **
if
(
FAILED
(
hres
))
return
hres
;
if
(
This
->
filter
)
{
new_elem
->
filter
=
heap_strdupW
(
This
->
filter
);
if
(
!
new_elem
->
filter
)
{
IHTMLElement_Release
(
&
This
->
IHTMLElement_iface
);
return
E_OUTOFMEMORY
;
}
}
IHTMLElement_AddRef
(
&
new_elem
->
IHTMLElement_iface
);
*
ret
=
&
new_elem
->
node
;
return
S_OK
;
...
...
dlls/mshtml/tests/jstest.html
View file @
d66dacce
...
...
@@ -80,6 +80,17 @@ function test_remove_style_attribute() {
ok
(
b
===
false
,
"removeAttribute returned "
+
b
+
" expected false"
);
}
function
test_clone_node
()
{
var
elem
,
cloned
;
elem
=
document
.
getElementById
(
"divid"
);
elem
.
style
.
filter
=
"alpha(opacity=50)"
;
ok
(
elem
.
style
.
filter
===
"alpha(opacity=50)"
,
"elem.style.filter = "
+
elem
.
style
.
filter
);
cloned
=
elem
.
cloneNode
(
true
);
ok
(
cloned
.
style
.
filter
===
"alpha(opacity=50)"
,
"cloned.style.filter = "
+
cloned
.
style
.
filter
);
}
var
globalVar
=
false
;
function
runTest
()
{
...
...
@@ -91,6 +102,7 @@ function runTest() {
test_removeAttribute
(
document
.
getElementById
(
"divid"
));
test_removeAttribute
(
document
.
body
);
test_select_index
();
test_clone_node
();
test_createDocumentFragment
();
test_document_name_as_index
();
test_remove_style_attribute
();
...
...
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