summaryrefslogtreecommitdiff
path: root/src/core/node.c
Commit message (Collapse)AuthorAgeFilesLines
* ensure result value is propogated (coverity 1127073)Vincent Sanders2014-01-241-4/+7
|
* Fix some broken assertsDaniel Silverstone2013-11-171-2/+2
|
* Compare the name and prefix directly. Since this avoids string ↵Michael Drake2013-05-231-17/+5
| | | | concatination, and (un)ref.
* Name and prefix were already compared. Add sane namespace comparison. ↵Michael Drake2013-05-231-7/+7
| | | | Remove broken comparison stuff. Remove TODO from previous commit.
* Fix _dom_node_is_equal leaking all its refs. Replace C++ comments. Flag ↵Michael Drake2013-05-231-32/+65
| | | | broken bit with TODO.
* Notify user data handlers on deletionJohn-Mark Bell2013-02-221-0/+5
|
* add context for default action functionVincent Sanders2013-02-191-1/+2
|
* Fix buffer overflow in event dispatchJohn-Mark Bell2012-11-111-1/+6
|
* Be marginally less brain dead when allocating memory during event dispatchDaniel Silverstone2012-11-031-33/+30
|
* Do not validate event names and use dom_string_byte_length for fastnessDaniel Silverstone2012-11-031-5/+1
|
* fixup comment damage from automated type conversionVincent Sanders2012-09-111-3/+3
|
* unsigned long -> uint32_t, signed long and long -> int32_t, plus collateral ↵Daniel Silverstone2012-09-101-3/+3
| | | | fixes. Test suite does not pass
* DOMNode: Clear string pointers when we unref themDaniel Silverstone2012-07-221-4/+12
|
* Cleanup: Remove two UNUSED()s which are not trueDaniel Silverstone2012-07-191-2/+0
|
* Promote ref/unref in dom_node to be inlines.Daniel Silverstone2012-03-281-41/+7
| | | | svn path=/trunk/libdom/; revision=13761
* Squash scan-build issuesDaniel Silverstone2012-03-251-2/+8
| | | | svn path=/trunk/libdom/; revision=13686
* And ensure we don't recurse comments and PIs during dom_node_get_text_contentDaniel Silverstone2012-03-241-0/+3
| | | | svn path=/trunk/libdom/; revision=13603
* Fixup _dom_node_get_text_contentDaniel Silverstone2012-03-241-7/+14
| | | | svn path=/trunk/libdom/; revision=13598
* Make dom_node_ref return the nodeDaniel Silverstone2012-03-241-1/+3
| | | | svn path=/trunk/libdom/; revision=13593
* C89 for BeOS build.François Revel2012-03-241-25/+40
| | | | svn path=/trunk/libdom/; revision=13581
* Move dom_string data accessing functions to public header.Michael Drake2011-12-221-4/+4
| | | | svn path=/trunk/libdom/; revision=13322
* Fix build with GCC 4.6John Mark Bell2011-12-211-7/+3
| | | | svn path=/trunk/libdom/; revision=13317
* Merge branches/jmb/dom-alloc-purge back to trunkJohn Mark Bell2011-12-211-297/+349
| | | | svn path=/trunk/libdom/; revision=13316
* s/struct dom_string/dom_string/gJohn Mark Bell2011-04-071-21/+21
| | | | svn path=/trunk/libdom/; revision=12172
* Simplify DOMImplementation API by replacing dom_strings with const char *John Mark Bell2010-12-061-2/+4
| | | | svn path=/trunk/libdom/; revision=11024
* Fix copy constructors to actually copy all members, instead of leaving the ↵John Mark Bell2010-12-061-12/+20
| | | | | | majority of them uninitialised svn path=/trunk/libdom/; revision=11023
* Remove bootstrap infrastructure, and just make dom_implementation a stub.John Mark Bell2010-12-051-14/+6
| | | | | | 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
* Merge branches/struggleyb/libdom-html to trunk.John Mark Bell2010-08-301-3/+26
| | | | | | A few additional fixes to reduce the number of regressions to single figures. svn path=/trunk/dom/; revision=10724
* Sync with modified libwapcaplet API: 11 additional DOM Level1 testsuite ↵John Mark Bell2010-08-261-165/+33
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-131-13/+72
| | | | svn path=/trunk/dom/; revision=9236
* Fix up the failed 3 test cases for DOMTS Core level 3.Bo Yang2009-08-121-1/+5
| | | | svn path=/trunk/dom/; revision=9212
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-111-213/+934
| | | | svn path=/trunk/dom/; revision=9191
* Squash warningsJohn Mark Bell2009-03-251-1/+1
| | | | svn path=/trunk/dom/; revision=6885
* Convert NodeList and ProcessingInstruction. Bo Yang2009-03-241-3/+3
| | | | svn path=/trunk/dom/; revision=6830
* Convert the dom_characterdata to use vtable.Bo Yang2009-03-151-1/+1
| | | | svn path=/trunk/dom/; revision=6787
* Change the our dom to use vtable method. The first step: Bo Yang2009-03-121-101/+124
| | | | | | | convert the dom_node/dom_attr. And, this is my first commit. Great && Exciting! svn path=/trunk/dom/; revision=6780
* Rationalise dom_string (some consideration is required as to what happens ↵John Mark Bell2009-03-031-14/+7
| | | | | | | | | 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
* Make the dom string class more useful.John Mark Bell2007-10-031-19/+29
| | | | | | | | Purge all trace of dom_string_get_data() from outside the dom string implementation. Port affected code to new, more useful, APIs. This also fixes the interned node name strings mentioned in the previous commit. svn path=/trunk/dom/; revision=3621
* Modify dom_node_initialise() API to permit specification of namespace URI ↵John Mark Bell2007-09-271-10/+20
| | | | | | | | and prefix. Fix up everything else to cope. svn path=/trunk/dom/; revision=3599
* Begin to cater for XML namespaces.John Mark Bell2007-09-261-13/+93
| | | | | | | | | | | The localname member of Node has been removed. The name member already caters for this. Fix NodeList to cope with this and add some pointer vs NULL comparisons for sanity. Replace implementation of dom_element_get_tag_name() with a simple call to dom_node_get_node_name(), which is where the gory details lie. Add the QName building stuff to dom_node_get_node_name() (as per previous implementation of dom_element_get_tag_name()). Implement dom_node_set_prefix(). Ensure dom_node_get_local_name() returns NULL for nodes created by non-namespace-aware methods (nodes must also be Elements or Attributes) svn path=/trunk/dom/; revision=3596
* Move attributes field to struct dom_element as it doesn't apply to other ↵John Mark Bell2007-09-241-6/+7
| | | | | | node types. svn path=/trunk/dom/; revision=3590
* Fix dom_node_{get,set}_value() to handle Attr nodes correctly -- now ↵John Mark Bell2007-09-231-0/+10
| | | | | | delegates value accesses to the Attr-specific functions. svn path=/trunk/dom/; revision=3581
* Fix dom_node_get_parent_node(), dom_node_get_previous_sibling() and ↵John Mark Bell2007-09-231-0/+18
| | | | | | dom_node_get_next_sibling() to return NULL for Attr nodes. svn path=/trunk/dom/; revision=3579
* Make _dom_node_readonly() accessible to library internalsJohn Mark Bell2007-09-221-1/+0
| | | | svn path=/trunk/dom/; revision=3576
* Implement dom_node_get_child_nodes()John Mark Bell2007-09-221-8/+21
| | | | | | Implement dom_node_get_attributes() svn path=/trunk/dom/; revision=3570
* Implement dom_node_remove_node()John Mark Bell2007-09-221-11/+46
| | | | | | | Make _dom_node_replace() handle DocumentFragments correctly. Ensure _dom_node_detach_range() clears range's previous/next pointers. svn path=/trunk/dom/; revision=3558
* Implement dom_node_replace_child()John Mark Bell2007-09-221-5/+83
| | | | svn path=/trunk/dom/; revision=3557
* If new_child is already in the tree ensure its parent is not read onlyJohn Mark Bell2007-09-221-2/+7
| | | | svn path=/trunk/dom/; revision=3556
* Fix misleading commentsJohn Mark Bell2007-09-221-13/+12
| | | | svn path=/trunk/dom/; revision=3555
* Move cardinality constraint checking for Document Element and DocumentType ↵John Mark Bell2007-09-221-89/+130
| | | | | | | | children to _dom_node_permitted_child(). Break tree insertion/removal code out from dom_node_insert_before() and into their own utility routines. svn path=/trunk/dom/; revision=3554