path: root/bindings/xml
Commit message (Collapse)AuthorAgeFilesLines
* Ignore http and https addresses when fetching entity refsChris Young2016-11-201-0/+13
| | | | | The fopen() causes a requester on AmigaOS which I'm bored of hearing about. See also bug 2313
* Slightly better fix for afl issuesDaniel Silverstone2016-08-271-20/+15
* fix expat parser adding comment if no node is being constructedVincent Sanders2016-08-241-0/+5
* protect expat parser from null current nodeVincent Sanders2016-08-241-0/+17
* Revert "Don't attempt to fetch external entity references blindly with fopen"Chris Young2016-08-231-3/+35
| | | | | | | It appears that this change broke the libdom tests because they expect to be able to load relative paths, and thus will not work without some external entity ref fetching system. Therefore this external entity reference fetching problem will need to have a proper fix written to resolve #2313 and avoid the security implications of not taking the base URI into account. This reverts commit 389f74b11d3f6cd54c32ffcf423cee1c9b07f845.
* Don't attempt to fetch external entity references blindly with fopenChris Young2016-08-231-35/+3
| | | | | | The system_id is a URI, either absolute or relative to 'base', it needs to be fetched using network calls, fopen won't work. I've put a half-working POC in chris/fetch-x-ent-ref but it needs fixing up and testing. Removing this non-working code fixes #2313 for now, but fetching of external entities will still need to be added.
* make unused variable macro more portable in expat bindingVincent Sanders2016-02-061-1/+1
* Fix some doxygen warningsVincent Sanders2015-09-012-7/+8
* Fix include paths for Haiku.Adrien Destugues2015-03-211-1/+1
* add context for default action functionVincent Sanders2013-02-192-0/+2
* Intern a few more bits in the expat handlerDaniel Silverstone2012-11-031-12/+14
* Change XML Parser API to be more saneDaniel Silverstone2012-11-033-72/+32
* Add some casts through void to shush the RISC OS compilerDaniel Silverstone2012-11-031-3/+4
* Remove unused variablesDaniel Silverstone2012-11-021-2/+0
* Augment expat binding to support namespaced attribute valuesDaniel Silverstone2012-11-021-5/+29
* Update expat binding to cope better with namespaced tag namesDaniel Silverstone2012-11-021-2/+27
* Move generation of id_name into document by default. Since 'id' is the most ↵Daniel Silverstone2012-11-021-10/+0
| | | | common name of the 'id' attribute
* fixup comment damage from automated type conversionVincent Sanders2012-09-112-21/+21
* unsigned long -> uint32_t, signed long and long -> int32_t, plus collateral ↵Daniel Silverstone2012-09-102-21/+21
| | | | fixes. Test suite does not pass
* XML Binding: Allow expat handler to coalesce TEXT nodes. Core suite now ↵Daniel Silverstone2012-07-151-1/+35
| | | | passes with expat.
* XML Binding: Allow expat binding to create text nodes if not parsing cdataDaniel Silverstone2012-07-151-6/+32
* XML Binding: Add doctype support to Expat handlerDaniel Silverstone2012-07-151-0/+45
* XML Binding: Add comment support to Expat handlerDaniel Silverstone2012-07-151-0/+52
* XML binding: Expat handler, dodgy external entity ref handlerDaniel Silverstone2012-07-151-48/+95
* XML binding: Not libxml only any moreDaniel Silverstone2012-07-151-1/+1
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-291-1/+1
| | | | svn path=/trunk/libdom/; revision=14005
* Beginnings of an expat binding -- NOT FUNCTIONAL YETDaniel Silverstone2012-03-244-8/+366
| | | | svn path=/trunk/libdom/; revision=13594
* Merge branches/jmb/dom-alloc-purge back to trunkJohn Mark Bell2011-12-212-40/+50
| | | | svn path=/trunk/libdom/; revision=13316
* s/struct dom_string/dom_string/gJohn Mark Bell2011-04-071-11/+11
| | | | svn path=/trunk/libdom/; revision=12172
* Provide mechanism for binding/client to define the features a document ↵John Mark Bell2010-12-061-0/+1
| | | | | | | | | object should support. Utilise this to decide whether to create a raw Document or an HTMLDocument instance. Disable the above decision, as the HTMLDocument implementation is garbage svn path=/trunk/libdom/; revision=11025
* Simplify DOMImplementation API by replacing dom_strings with const char *John Mark Bell2010-12-061-39/+6
| | | | svn path=/trunk/libdom/; revision=11024
* Remove bootstrap infrastructure, and just make dom_implementation a stub.John Mark Bell2010-12-051-34/+2
| | | | | | We only support a single implementation, so all the registry and implementation list stuff is totally unnecesary and overcomplex svn path=/trunk/dom/; revision=11017
* Sync with modified libwapcaplet API: 11 additional DOM Level1 testsuite ↵John Mark Bell2010-08-262-13/+6
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Fix install ruleJohn Mark Bell2009-09-211-1/+1
| | | | svn path=/trunk/dom/; revision=9596
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-131-2/+4
| | | | svn path=/trunk/dom/; revision=9236
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-116-488/+95
| | | | svn path=/trunk/dom/; revision=9191
* More best guesses.John Mark Bell2009-04-171-0/+1
| | | | svn path=/trunk/dom/; revision=7114
* Work around bug in libxml headers.John Mark Bell2009-03-261-0/+4
| | | | svn path=/trunk/dom/; revision=6895
* Squash warningsJohn Mark Bell2009-03-251-7/+7
| | | | svn path=/trunk/dom/; revision=6885
* First cut at a port to the new buildsystem.John Mark Bell2009-03-251-65/+12
| | | | | | DOMTS stuff currently disabled. svn path=/trunk/dom/; revision=6883
* Rationalise dom_string (some consideration is required as to what happens ↵John Mark Bell2009-03-032-24/+17
| | | | | | | | | wrt interning -- lwc_strings should probably be used) Purge charset handling -- a) documents are always converted to utf-8 b) use parserutils for utf-8 handling Fix Hubbub binding to compile. svn path=/trunk/dom/; revision=6682
* Fix up names of xml binding error enum valuesJohn Mark Bell2007-11-043-14/+14
| | | | svn path=/trunk/dom/; revision=3645
* Fix up bindings buildsystem to permit multiple bindings to be built -- quite ↵John Mark Bell2007-11-047-157/+131
| | | | | | | | | why this wasn't done in the first place is currently beyond me. Tidy up XML binding -- ensure all public API is prefixed dom_xml_ to avoid confusion, remove xml_alloc (it's pointless), and move xml_msg to <dom/functypes.h> (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643
* DOM Strings are now capable of containing either UTF-8 or UTF-16 encoded data.John Mark Bell2007-09-302-1/+7
| | | | | | | | | | | | | | | | | | The charset used for strings within a document is specified at document creation time. Whilst it is possible to mix charsets within a document, it's not recommended. Things that need fixing: + dom_string_get_data() doesn't return the charset. Better would be to permit the client to request a charset for the data to be returned in. + Interned node name strings will break if the document is UTF-16 (dom_document_create()). In fact, these could quite happily be globals, rather than allocating a set for each document. + Other usage of dom string constructors need checking for sanity + DOM Strings need to gain more utility APIs (such as getting the character length of a string, string concatenation etc). svn path=/trunk/dom/; revision=3614
* dom_initialise() and dom_finalise() are now completely public, rather than ↵John Mark Bell2007-09-291-11/+0
| | | | | | | | hidden away in a header only meant for inclusion by bindings. Client applications are responsible for initialisation and finalisation of the dom library. This must happen before/after (respectively) any call to a dom library or dom binding library function. The reason for this change is that, if multiple bindings are required, then the dom library should still only be initialised/finalised once. Only the client can enforce this sensibly. svn path=/trunk/dom/; revision=3606
* Add finalisation method to libxml-libdom.John Mark Bell2007-09-292-0/+21
| | | | | | Ensure testcases clean up after themselves by calling xml_dom_binding_finalise() svn path=/trunk/dom/; revision=3605
* Introduce global initialistaion/finalisation for DOM library. This should be ↵John Mark Bell2007-09-291-0/+5
| | | | | | | | | used to initialise any parts of the library before they are used. Mostly, this will comprise of static initialisers. Finalisation cleans up afterwards. This API is only exposed to language-specific binding libraries -- they should expose their own global initialisation/finalisation routines which call the core libdom ones. Introduce new utility code for namespace and qname processing. Port dom_document_create_element_ns() and dom_document_create_attribute_ns() to this new code. Make libdom-libxml's initialiser initialise libdom itself first of all. svn path=/trunk/dom/; revision=3604
* Include required headersJohn Mark Bell2007-09-221-0/+3
| | | | svn path=/trunk/dom/; revision=3567
* Begin implementation of DocumentType classJohn Mark Bell2007-09-192-21/+36
| | | | | | | | | | | | | | | Remove dom_document_set_doctype() -- dom_node_insert_before() (and thus _append_child()) can be used to achieve the same effect. DocumentType node is now a child of the Document node (as it should have been) rather than a hidden field. Make dom_node_destroy() aware of DocumentType nodes potentially having no owner. Make dom_node_finalise() aware of it, too. Make dom_node_get_owner_document() return NULL for Document nodes, as per the spec. Fix bug in dom_node_insert_before() -- previously it failed to catch attempts to insert a second root element. Make dom_node_insert_before() handle DocumentType nodes appropriately. Implement XML binding's dom_implementation_create_document_type() function. Fix XML binding's dom_implementation_create_document() implementation to cope with changed API relating to doctype insertion. Fix up XML parser wrapper to cater for new doctype insertion mechanism. Also sprinkle some NULL about for paranoia purposes. svn path=/trunk/dom/; revision=3551
* More informational messagingJohn Mark Bell2007-09-181-6/+45
| | | | svn path=/trunk/dom/; revision=3550