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
13079c56
Commit
13079c56
authored
Mar 17, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed cloning comment nodes.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
906db769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
htmlcomment.c
dlls/mshtml/htmlcomment.c
+15
-1
dom.c
dlls/mshtml/tests/dom.c
+4
-3
No files found.
dlls/mshtml/htmlcomment.c
View file @
13079c56
...
...
@@ -169,11 +169,25 @@ static void HTMLCommentElement_destructor(HTMLDOMNode *iface)
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
HRESULT
HTMLCommentElement_clone
(
HTMLDOMNode
*
iface
,
nsIDOMNode
*
nsnode
,
HTMLDOMNode
**
ret
)
{
HTMLCommentElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLElement
*
new_elem
;
HRESULT
hres
;
hres
=
HTMLCommentElement_Create
(
This
->
element
.
node
.
doc
,
nsnode
,
&
new_elem
);
if
(
FAILED
(
hres
))
return
hres
;
*
ret
=
&
new_elem
->
node
;
return
S_OK
;
}
static
const
NodeImplVtbl
HTMLCommentElementImplVtbl
=
{
HTMLCommentElement_QI
,
HTMLCommentElement_destructor
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTML
Comment
Element_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
};
...
...
dlls/mshtml/tests/dom.c
View file @
13079c56
...
...
@@ -6244,12 +6244,10 @@ static void test_unique_id(IHTMLDocument2 *doc, IHTMLElement *elem)
hres
=
IHTMLUniqueName_get_uniqueID
(
unique_name
,
&
id
);
ok
(
hres
==
S_OK
,
"get_uniqueName failed: %08x
\n
"
,
hres
);
trace
(
"id %s
\n
"
,
wine_dbgstr_w
(
id
));
hres
=
IHTMLUniqueName_get_uniqueID
(
unique_name
,
&
id2
);
ok
(
hres
==
S_OK
,
"get_uniqueName failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
id
,
id2
),
"unique names differ
\n
"
);
trace
(
"id %s
\n
"
,
wine_dbgstr_w
(
id2
));
hres
=
IHTMLUniqueName_get_uniqueNumber
(
unique_name
,
&
num
);
ok
(
hres
==
S_OK
,
"get_uniqueName failed: %08x
\n
"
,
hres
);
...
...
@@ -6257,7 +6255,6 @@ static void test_unique_id(IHTMLDocument2 *doc, IHTMLElement *elem)
sprintf
(
buf
,
"ms__id%u"
,
num
);
ok
(
!
strcmp_wa
(
id
,
buf
),
"unexpected id %s
\n
"
,
wine_dbgstr_w
(
id
));
trace
(
"num %d
\n
"
,
num
);
SysFreeString
(
id
);
SysFreeString
(
id2
);
...
...
@@ -8907,6 +8904,10 @@ static void test_create_elems(IHTMLDocument2 *doc)
test_elem_outerhtml
((
IUnknown
*
)
comment
,
"<!--testing-->"
);
test_comment_attrs
((
IUnknown
*
)
comment
);
node2
=
clone_node
((
IUnknown
*
)
comment
,
VARIANT_TRUE
);
test_comment_text
((
IUnknown
*
)
node2
,
"<!--testing-->"
);
IHTMLDOMNode_Release
(
node2
);
IHTMLDOMNode_Release
(
comment
);
}
...
...
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