Commit Graph

353 Commits

Author SHA1 Message Date
Nikolay Sivov 02066602b6 msxml3: Implement ::replaceData() for Text, Comment and CDATA nodes. 2010-02-16 11:33:03 +01:00
Nikolay Sivov c1464f8ab9 msxml3: Fix return value for IXMLDOMNode_put_nodeValue() for unsupported types. 2010-02-15 16:09:24 +01:00
Nikolay Sivov 5262c570f1 msxml3: Accept NODE_ENTITY_REFERENCE in ::createNode() and use it for ::createEntityReference(). 2010-02-15 16:09:17 +01:00
Nikolay Sivov 20a240fe41 msxml3: Reimplement IXMLDOMDocument::createProcessingInstruction() on top of ::createNode(). 2010-02-15 16:09:11 +01:00
Nikolay Sivov f414d3cf60 msxml3: Reimplement IXMLDOMDocument::createAttribute() on top of ::createNode(). 2010-02-15 16:09:05 +01:00
Nikolay Sivov f0e885759e msxml3: Reimplement IXMLDOMDocument::createCDATASection() on top ::createNode(). 2010-02-15 16:08:59 +01:00
Nikolay Sivov 24e198e2ff msxml3: Reimplement IXMLDOMDocument::createTextNode() on top of ::createNode(). 2010-02-15 16:08:44 +01:00
Nikolay Sivov 760f7ba724 msxml3: Reimplement IXMLDOMDocument::createComment() on top of ::createNode(). 2010-02-15 16:08:29 +01:00
Nikolay Sivov ca01a44164 msxml3: Reimplement IXMLDOMDocument::createElement() over ::createNode(). 2010-02-12 14:49:11 +01:00
Nikolay Sivov 469b0ff6b5 msxml3/tests: Don't try to use wchar buffers as BSTR parameters. 2010-02-12 11:55:51 +01:00
Nikolay Sivov 16d83dc7d4 msxml3: Support more node types in IXMLDOMDocument_createNode(). 2010-02-12 11:55:29 +01:00
Nikolay Sivov e2b727807d msxml3: Check for Null out pointer in node creation (with tests). 2010-02-12 11:55:17 +01:00
Nikolay Sivov 875c9c71ab msxml3: Accept PI node in on base name request. 2010-02-10 14:34:06 +01:00
Nikolay Sivov b9d07c5ae5 msxml3/tests: Add a trivial test for IXMLDOMDocumentFragment_get_parentNode(). 2010-02-10 11:32:58 +01:00
Nikolay Sivov f65fd26fe1 msxml3: IXMLDOMAttribute shouldn't report its parent. 2010-02-10 11:32:53 +01:00
Nikolay Sivov a9fc71b48e msxml3: Support comment node type in IXMLDOMNode_get_baseName. 2010-02-09 17:13:38 +01:00
Nikolay Sivov a03bc72690 msxml3: Implement IXMLDOMText::deleteData(). 2010-01-29 14:59:02 +01:00
Nikolay Sivov 173c4884ac msxml3: Implement IXMLDOMCDATASection::deleteData() with tests. 2010-01-29 14:59:02 +01:00
Nikolay Sivov 97c2a25472 msxml3/tests: Fix interface leak. 2010-01-21 09:05:47 +01:00
Nikolay Sivov 5f72a88590 msxml3: Implement IXMLDOMComment::deleteData() with tests. 2010-01-19 15:03:54 +01:00
Nikolay Sivov e6edbc451d msxml3/tests: Fix interface leak and message typo. 2010-01-18 14:18:55 +01:00
Nikolay Sivov f9cb63116d msxml3: Track linked/unlinked state for element and free node data only when unlinked. 2010-01-18 14:18:48 +01:00
Nikolay Sivov 20e63dcfd1 msxml3: In IXMLElementCollection store pointer to node instead of pointer to children.
Collection should be able to track node removal from children list.
2010-01-18 14:18:39 +01:00
Nikolay Sivov 7f5cedf70a msxml3: Implement IXMLElement::removeChild() with some tests. 2010-01-18 14:18:29 +01:00
Nikolay Sivov 5afdfaba86 msxml3: Don't preallocate root element, return new instance on each call. 2010-01-18 14:18:21 +01:00
Nikolay Sivov 1cad1646e5 msxml3/xmldoc: Don't leak document and stream on next IXMLDocument::Load(). 2010-01-14 09:42:30 -06:00
Nikolay Sivov 6c1275a57c msxml3/xmldoc: IPersistStreamInit::InitNew() seems to do nothing for IXMLDocument. 2010-01-14 09:42:21 -06:00
Nikolay Sivov a18ee2111a msxml3/xmldoc: Fix IPersistStreamInit::GetClassID() for IXMLDocument. 2010-01-14 09:42:10 -06:00
Nikolay Sivov 1b2f1867c8 msxml3/tests: Add some tests for IPersistStreamInit implementation of IXMLDocument. 2010-01-14 09:42:04 -06:00
Nikolay Sivov af502d236e msxml3: Implement IXMLDocument::get_doctype(). 2010-01-11 11:33:27 -06:00
Nikolay Sivov 04288208d0 msxml3: Implement IXMLDocument::get_version(). 2010-01-11 11:33:20 -06:00
Nikolay Sivov 1c040a38c6 msxml3/tests: Fix some string leaks in tests. 2010-01-11 11:31:30 -06:00
Huw Davies 318c7b24ee msxml3: Correctly test the variant returned by get_nodeValue.
Found by Valgrind.
2009-12-09 14:53:31 +01:00
Rob Shearman 211e4fc0fe msxml3: Fix double-free of BSTR in domdoc tests.
Using the _bstr_ allocator adds the returned string to a cache, so the
string shouldn't be freed with SysFreeString. Therefore, just replace
the lone call to _bstr_ in this function by a straight call to
SysAllocString.
2009-12-02 16:08:52 +01:00
Marcus Meissner ed26bb09c5 msxml3: Move element usage into element!=NULL check (Coverity). 2009-11-29 16:36:59 +01:00
Marcus Meissner 80995b684b msxml3: Fix NULL ptr checking in domdoc test (Coverity). 2009-11-23 13:09:31 +01:00
Piotr Caban 8700253775 msxml3: Implemented xmlnode_get_nodeTypedValue 'bin.base64' data type handling. 2009-11-20 11:13:23 +01:00
Piotr Caban 3c58b1c418 msxml3: Implemented xmlnode_get_nodeTypedValue 'bin.hex' data type handling. 2009-11-20 11:13:16 +01:00
Piotr Caban 2a9eb6e3bb msxml3: Implemented more data types handling xmlnode_get_nodeTypedValue. 2009-11-20 11:13:09 +01:00
Piotr Caban 6633001d6e msxml3: Remove test that fails on some systems. 2009-11-19 11:35:45 +01:00
Piotr Caban 5f26c60982 msxml3: Ignore nanoseconds in xmlnode_get_nodeTypedValue. 2009-11-19 11:09:46 +01:00
Piotr Caban f4f7198610 msxml3: Implemented xmlnode_get_nodeTypedValue 'i1' data type handling. 2009-11-19 11:09:40 +01:00
Piotr Caban 0d78a883c0 msxml3: Implemented xmlnode_get_nodeTypedValue date related data types handling. 2009-11-18 11:51:05 +01:00
Piotr Caban 39f0504c86 msxml3: Implemented xmlnode_get_nodeTypedValue 'boolean' data type handling. 2009-11-18 11:51:05 +01:00
Piotr Caban 47e037d4bb msxml3: Implemented xmlnode_get_nodeTypedValue 'fixed.14.4' data type handling. 2009-11-18 11:51:05 +01:00
Piotr Caban 44980403da msxml3: Implemented xmlnode_get_nodeTypedValue 'int' data type handling. 2009-11-18 11:51:04 +01:00
Piotr Caban 0a6d3a70ca msxml3: Implemented xmlnode_get_nodeTypedValue 'number' data type handling. 2009-11-18 11:51:04 +01:00
Piotr Caban b56031c3a6 msxml3: Implemented xmlnode_get_nodeTypedValue 'string' data type handling. 2009-11-18 11:51:04 +01:00
Alistair Leslie-Hughes 30087f9660 msxml3: Add IDispatchEx support to IXMLDOMElement. 2009-09-10 10:49:17 +02:00
Jacek Caban c4a9d1cfa2 msxml3: Added more IDispatchEx tests. 2009-08-29 17:13:04 +02:00
Alistair Leslie-Hughes 89c92bee63 msxml3: Support loading windows file paths. 2009-08-19 17:27:41 +02:00
Alexandre Julliard 2ce5dba498 msxml3/tests: Use the global wine_dbgstr_w instead of a local variant. 2009-08-19 13:36:55 +02:00
Alistair Leslie-Hughes e00425e6c4 msxml3: IXMLDOMElement doesn't support IObjectIdentity. 2009-08-14 13:59:10 +02:00
Michael Stefaniuc de68b01e8c msxml3: Change long to LONG in msxml.idl. 2009-03-10 12:06:21 +01:00
Michael Stefaniuc bd87b49614 msxml3: Change long to LONG in msxml2.idl and xmldom.idl. 2009-03-10 12:06:14 +01:00
Alistair Leslie-Hughes 17db41c349 msxml3: Use our parent doc if we don't have one. 2009-02-09 17:17:09 +01:00
Michael Stefaniuc 6a5dda7143 msxml3: Remove superfluous pointer casts. 2009-01-26 14:31:05 +01:00
Alistair Leslie-Hughes 5bedc409d5 msxml3: IXMLDOMDocument2 async default value is VARIANT_TRUE. 2009-01-22 15:28:24 +01:00
Alistair Leslie-Hughes 549befe706 msxml3: Use xmlNodeGetContent to get text data. 2008-12-23 19:55:55 +01:00
Alistair Leslie-Hughes 40fdc88efc msxml3: Add ISupportErrorInfo interface to IXMLDOMDocument. 2008-12-20 11:43:01 +01:00
Alistair Leslie-Hughes 561cf9f746 msxml3: Corrected getAttributeNode to return correct values. 2008-12-17 13:52:41 +01:00
Vincent Povirk 445588ba10 msxml3/tests: Fix string format warnings. 2008-12-05 12:30:14 +01:00
Michael Karcher aefe3456fb msxml3/tests: Fix BSTR leak. 2008-12-01 14:22:12 +01:00
Michael Karcher e55da04e77 msxml3: Avoid duplicate encoding.
The libxml documentation suggests to either use
xmlEncodedEntitiesReentrant or xmlEncodeSpecialChars, but if you apply
both, you end up producing "&".
2008-12-01 14:22:12 +01:00
Michael Karcher 00c57d6bbc msxml3: IXMLCDATASection is not an element. 2008-10-31 13:26:53 +01:00
Alistair Leslie-Hughes 13606ed49d msxml3: Add support to get_nodeTypedValue on Element Nodes. 2008-10-28 12:46:29 +01:00
Michael Karcher f5ac0f3277 msxml3/tests: Fix assorted memory leaks. 2008-10-13 11:52:31 +02:00
Michael Karcher b7ac3bde68 msxml3: IXMLDOMNode_put_nodeValue: Use variant coercion. 2008-10-13 11:51:34 +02:00
Michael Karcher c729305511 msxml3: Correct handling of listLength == NULL in IXMLDOMNamedNodeMap::get_length. 2008-10-13 11:51:02 +02:00
Michael Karcher dfc5a00cb0 msxml3: Implementation of IXMLDOMNamedNodeMap::removeNamedItem. 2008-10-13 11:50:52 +02:00
Michael Karcher 9fe98546e4 msxml3: Text node should not aggregate element. 2008-10-10 12:26:52 +02:00
Alistair Leslie-Hughes bcc1fda727 msxml3: Add IXMLHTTPRequest support. 2008-10-09 13:15:16 +02:00
Michael Stefaniuc 256ce911be msxml3/tests: Use SUCCEEDED instead of !FAILED. 2008-10-08 13:43:04 +02:00
Paul Vriens 59f8cd533d msxml3/tests: Compare instead of assign. 2008-10-08 12:20:28 +02:00
Michael Karcher 57ee10ff12 msxml3: Revert "Simplify IXMLDOMNode::removeChild".
The simplification was bad, native msxml works if interface pointers
to the wrong interface are passed in. Tests included.
2008-10-07 13:45:40 +02:00
Michael Karcher 91513caa16 msxml3: Handle all variant types in IXMLDOMDocument::createNode. 2008-10-07 13:42:16 +02:00
Michael Karcher 27e9a98350 msxml3: replaceNode accepts IXMLDOMElement instead of IXMLDOMNode. 2008-10-07 13:42:05 +02:00
Michael Karcher 6fe686f599 msxml3: Basic implementation of IXMLDOMNode::replaceChild. 2008-10-07 13:41:54 +02:00
Michael Karcher 2a21579b08 msxml3/tests: Valgrind fix. 2008-10-07 13:41:43 +02:00
Michael Karcher 9d65ec2702 msxml3: Parameter validation for IXMLDOMNode::replaceChild and tests. 2008-10-06 14:19:37 +02:00
Michael Karcher 30351482e8 msxml3: Fail a bit earlier on removeChild(...,NULL,...). 2008-10-06 14:19:11 +02:00
Michael Karcher 75606f3583 msxml3: removeChild can only delete direct children. 2008-10-06 14:19:04 +02:00
Michael Karcher d1c8083b93 msxml3/tests: Clean up test_removeChild.
Rename variables to help the reader following the xml traversal. While doing
that, I encountered a possible typo, as node_list2 was never used after being
acquired. This version now really tries to delete a grandchild and expects
a failure.
2008-10-06 14:18:55 +02:00
Michael Stefaniuc 1949a8c245 msxml3/tests: Remove redundant NULL check before SysFreeString (Smatch). 2008-09-25 11:18:57 +02:00
Piotr Caban 0532df61be msxml3/test: Add test for ISAXXMLReader_parse (passing XMLDOMDocument as argument). 2008-09-22 11:49:22 +02:00
Alistair Leslie-Hughes 8af99c9751 msxml3: Correct test. 2008-09-15 11:47:56 +02:00
Marcus Meissner 980ffb8eb4 msxml3: Fixed incorrect MultiByteToWideChar. 2008-09-05 11:21:35 +02:00
Alistair Leslie-Hughes 5e1ac66b25 msxml3: Add IDispatchEx test. 2008-09-03 14:21:45 +02:00
Paul Vriens e1c9c2597a msxml3/tests: Fix a test on win98. 2008-09-03 14:21:41 +02:00
Paul Vriens fe360d6aa2 msxml3/tests: Use CreateFileA to please win98. 2008-09-03 14:21:41 +02:00
Paul Vriens 7af5d5fb23 msxml3/tests: Add a missing CoUninitialize. 2008-09-02 13:28:51 +02:00
Paul Vriens 7fb12e84f5 msxml3/tests: Add a missing CoUninitialize. 2008-09-02 13:28:46 +02:00
Alistair Leslie-Hughes ac29a3d838 msxml3: Correct unsupported functions in IDispatchEx. 2008-08-27 13:21:24 +02:00
Piotr Caban 2841755c16 msxml3: Added IDispatchEx QueryInterface test. 2008-08-22 10:42:37 +02:00
Alistair Leslie-Hughes 95660514d3 msxml3: Format get_xml string to be more like msxml3. 2008-07-28 14:29:07 +02:00
Piotr Caban 742eb4ba08 msxml3/tests: Added test for ISAXXMLReader_parseURL. 2008-07-28 11:35:21 +02:00
Piotr Caban 68963c9fd0 msxml3/tests: Add test for parsing document with '\r' characters. 2008-07-24 11:55:01 +02:00
Piotr Caban c545852013 msxml3/tests: Add test for parsing from IStream. 2008-07-24 11:54:20 +02:00
Detlef Riekenberg 50840ec3be msxml3/tests: Fix failure and crash on win9x. 2008-07-23 13:06:22 +02:00
Piotr Caban 0a8b284010 msxml3/tests: Added test for ISAXXMLReader_parse with SafeArray as argument. 2008-07-21 12:57:09 +02:00
Piotr Caban 918a46ce2c msxml3/tests: Added tests for ISAXXMLReader_putErrorHandler and ISAXXMLReader_getErrorHandler. 2008-07-21 12:56:44 +02:00
Piotr Caban 1547a9de47 msxml3/tests: Added more tests for ISAXXMLReader_parse and ISAXLocator. 2008-07-17 13:03:51 +02:00
Zhangrong Huang 89f1bfabe3 msxml3: Add support for accessing document node. 2008-07-16 19:56:24 +02:00
Piotr Caban f216514dd5 msxml3/tests: Added test for getContentHandler with NULL argument. 2008-07-11 14:22:26 +02:00
Piotr Caban 93e76ece37 msxml3: oldChild in xmlnode_removeChild may be NULL. 2008-07-10 18:11:22 +02:00
Piotr Caban 088f3eef9c msxml3/tests: Added more tests to ISAXXMLReader_putContentHandler and ISAXXMLReader_getContentHandler, added todo test for ISAXXMLReader_parse. 2008-07-10 18:11:13 +02:00
Francois Gouget c3a952eb48 msxml3/tests: Add a trailing '\n' to ok() calls. 2008-07-10 12:18:23 +02:00
Alexandre Julliard 33128dbb22 msxml3/tests: Fix test cleanup. 2008-07-09 11:46:44 +02:00
Piotr Caban 616fd82062 msxml3: Skip the first XML declaration in file generated by domdoc_save.
This is the last patch needed for Photoshop CS3 installer.
2008-07-09 11:31:23 +02:00
Piotr Caban 82b2a83337 msxml3: Added test of files generated by IXMLDOMDocument_save. 2008-07-09 11:31:23 +02:00
Piotr Caban 800463c21b msxml3: Implemented xmlnode_get_ownerDocument. 2008-07-09 11:31:23 +02:00
Piotr Caban cabbe8fa35 msxml3/test: Added ISAXXMLReader test. 2008-07-09 11:31:22 +02:00
Alexandre Julliard 79c64acc7b tests: Don't depend on the static uuid libraries in the tests.
This avoids trouble with the broken MingW libraries when
cross-compiling the tests.
2008-07-08 17:51:45 +02:00
Zhangrong Huang 86a0643df8 msxml3/test: Fix a typo in test node_to_string(). 2008-07-03 13:08:19 +02:00
Alistair Leslie-Hughes 746cdb4a6d msxml3: Added tests to check for invalid arguments. 2008-07-03 13:08:18 +02:00
Piotr Caban 0781daba7a msxml3/tests: Fix error messages. 2008-07-03 13:08:18 +02:00
Piotr Caban 66eca8b3d6 msxml3/tests: Better error messages formatting. 2008-07-03 13:08:18 +02:00
Alistair Leslie-Hughes d659e63d73 msxml3: Added support to create an Attribute in createNode. 2008-07-03 11:50:51 +02:00
Piotr Caban c0661fdb90 msxml3: Added IXMLDOMElement_getAttributeNode implementation. 2008-07-02 11:37:09 +02:00
Piotr Caban bd4e7379ae msxml3: Added IXMLDOMElement_getAttributeNode test. 2008-07-02 11:37:05 +02:00
Dan Kegel 578870bc4d msxml3/tests: VT_EMPTY is not a string. 2008-06-23 12:46:29 +02:00
Alistair Leslie-Hughes 56d5332285 msxml3: Improved checking of failed case. 2008-06-20 12:39:44 +02:00
Alistair Leslie-Hughes 558ae52cc4 msxml3: Stop tests crashing under windows 98. 2008-06-09 19:09:29 +02:00
Dan Kegel d38dc0233a msxml/tests: Use VariantInit, not VariantClear, to initialize new variants. 2008-06-06 10:28:42 +02:00
Alistair Leslie-Hughes 6a90c5890c msxml3: Stopped tests from crashing and a Win98 fix. 2008-05-26 17:55:19 +02:00
Francois Gouget 9787d68941 msxml3/tests: Add a trailing '\n' to an ok() call. 2008-05-06 16:10:04 +02:00
Alexandre Julliard dad21bbcbf makefiles: List the static libraries as normal imports instead of extra libs. 2008-04-30 14:23:55 +02:00
Alistair Leslie-Hughes ad1f05f961 msxml3: Implement IXMLDOMComment insertData. 2008-04-29 14:58:11 +02:00
Alistair Leslie-Hughes 42db8b439f msxml3: Corrected transformNode. 2008-04-25 14:47:55 +02:00
Alistair Leslie-Hughes a430b37355 msxml3: Add tests for get_prefix and get_namespaceURI. 2008-04-21 12:10:37 +02:00
Alistair Leslie-Hughes 880bacb5f1 msxml3: Implement transformNode. 2008-04-17 12:25:29 +02:00
Austin English 05faae7b5a Spelling fixes. 2008-04-09 12:07:39 +02:00
Francois Gouget 304b415284 Assorted spelling fixes. 2008-03-19 11:21:27 +01:00
Alistair Leslie-Hughes 8746e38758 msxml3: Implemented IXMLDOMCDATASection_insertData. 2008-03-13 20:21:15 +01:00
Alistair Leslie-Hughes 9b3234eb35 msxml3: Implement IXMLDOMComment_appendData. 2008-03-13 20:21:02 +01:00
Alistair Leslie-Hughes 52f6a33a85 msxml3: Cannot use put_nodeValue on a IXMLDOMProcessingInstruction node whose target is xml. 2008-03-13 11:31:32 +01:00
Alistair Leslie-Hughes 6167c6122a msxml3: Allow IXMLDOMDocument to save as another IXMLDOMDocument. 2008-03-12 12:25:19 +01:00
Alistair Leslie-Hughes 17bf0d9164 msxml3: Corrected double free in test. 2008-03-11 13:26:11 +01:00
Alistair Leslie-Hughes 036953842d msxml3: Implemented IXMLDOMText_insertData. 2008-03-10 19:12:53 +01:00
Alistair Leslie-Hughes 675ed5a9b4 msxml3: Implement IXMLDOMCDATASection_appendData. 2008-03-10 12:23:17 +01:00
Alistair Leslie-Hughes c7f3dfc1a1 msxml3: Implement IXMLDOMCDATASection_substringData. 2008-03-10 12:23:06 +01:00
Alistair Leslie-Hughes 777aa3382d msxml3: Implement IXMLDOMComment_substringData. 2008-03-10 12:22:53 +01:00
Alistair Leslie-Hughes 8ac57e940b msxml3: Stopped seg faults during regression tests on windows. 2008-03-05 11:20:26 +01:00
Francois Gouget 29ef0b90ee Assorted spelling, punctuation and case fixes. 2008-03-03 12:04:48 +01:00
Alistair Leslie-Hughes 6dee6819b2 msxml3: Implement IXMLDOMProcessingInstruction_get_nodeName. 2008-03-03 11:57:49 +01:00
Alistair Leslie-Hughes 56da338e5c msxml3: Implmented IXMLDOMCDATASection_get_data. 2008-03-03 11:57:42 +01:00
Alistair Leslie-Hughes c43b0706a3 msxml3: Implement IXMLDOMCDATASection_get_nodeValue. 2008-03-03 11:57:28 +01:00
Alistair Leslie-Hughes f9c5856c8c msxml3: Implement IXMLDOMText_appendData. 2008-03-03 11:57:20 +01:00
Alistair Leslie-Hughes a7c9fbc65c msxml3: Implemented IXMLDOMText substringData. 2008-02-29 20:07:13 +01:00
Alistair Leslie-Hughes c61937b6d4 msxml3: Correct IXMLDOMProcessingInstruction_put_data function. 2008-02-29 12:35:43 +01:00