summaryrefslogtreecommitdiff
path: root/src/core/element.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't allocate array when client asks for element classes, just give pointer ↵Michael Drake2013-12-131-10/+4
| | | | to internal array.
* ensure _dom_element_set_attr_node does not leak on error paths (coverity ↵Vincent Sanders2013-11-081-3/+10
| | | | 1127085)
* Fix cloning of element attr list.John-Mark Bell2012-10-061-8/+14
|
* fixup comment damage from automated type conversionVincent Sanders2012-09-111-4/+4
|
* unsigned long -> uint32_t, signed long and long -> int32_t, plus collateral ↵Daniel Silverstone2012-09-101-8/+8
| | | | fixes. Test suite does not pass
* Fix a crash on http://gopher.floodgap.com/overbite/François Revel2012-04-071-0/+5
| | | | | | | _dom_element_attr_list_node_clone() forgot to init the list entry. Added some asserts. svn path=/trunk/libdom/; revision=13811
* Add some functions to implement some of LibCSS's selection callbacks, as an ↵Michael Drake2012-03-281-0/+86
| | | | | | experiment in clawing back performance. May well get reverted. svn path=/trunk/libdom/; revision=13755
* Minor improvement by short-circuiting for no classes in _dom_element_has_classDaniel Silverstone2012-03-261-4/+7
| | | | svn path=/trunk/libdom/; revision=13725
* Fix for actual lwc_string_isequal API.Michael Drake2012-03-261-5/+7
| | | | svn path=/trunk/libdom/; revision=13716
* Make _dom_element_get_classes cope with copying multiple class valuesJohn Mark Bell2012-03-251-4/+12
| | | | svn path=/trunk/libdom/; revision=13676
* Comment client's ownership of class array.Michael Drake2012-03-251-1/+1
| | | | svn path=/trunk/libdom/; revision=13665
* Take copy of classes array, for client to free.Michael Drake2012-03-251-2/+11
| | | | svn path=/trunk/libdom/; revision=13663
* Set failure to match properly.Michael Drake2012-03-251-0/+2
| | | | svn path=/trunk/libdom/; revision=13661
* Switch case sensetivity of class comparison on document quirks mode.Michael Drake2012-03-241-5/+8
| | | | svn path=/trunk/libdom/; revision=13634
* When copying elements, correctly copy the cached class listDaniel Silverstone2012-03-241-1/+13
| | | | svn path=/trunk/libdom/; revision=13630
* Minor cleanupDaniel Silverstone2012-03-241-3/+2
| | | | svn path=/trunk/libdom/; revision=13628
* Only get value for elements with class.Michael Drake2012-03-241-1/+6
| | | | svn path=/trunk/libdom/; revision=13627
* Pass element to attribute list adder, because element might not be attached ↵Michael Drake2012-03-241-7/+6
| | | | | | to the attribute at this point. svn path=/trunk/libdom/; revision=13622
* Generate element's class list.Michael Drake2012-03-241-43/+142
| | | | svn path=/trunk/libdom/; revision=13621
* Commit a neatnessDaniel Silverstone2012-03-241-3/+1
| | | | svn path=/trunk/libdom/; revision=13612
* Split out destruction of element class cache.Michael Drake2012-03-241-7/+22
| | | | svn path=/trunk/libdom/; revision=13597
* Implement the element class API for libcss, except for actually making the ↵Michael Drake2012-03-241-8/+40
| | | | | | array of lwc_strings. svn path=/trunk/libdom/; revision=13595
* Don't need to include utils/hashtable.h.Michael Drake2012-03-241-1/+0
| | | | svn path=/trunk/libdom/; revision=13586
* Fix API documentation comments.Michael Drake2012-03-241-13/+13
| | | | svn path=/trunk/libdom/; revision=13585
* C89 for BeOS build.François Revel2012-03-241-18/+23
| | | | svn path=/trunk/libdom/; revision=13581
* Fix dom element attribute setting to return the old element as per the APIDaniel Silverstone2012-03-231-1/+1
| | | | svn path=/trunk/libdom/; revision=13561
* Rename 'a' to 'old_attr' so we can follow this routine more easilyDaniel Silverstone2012-03-231-9/+9
| | | | svn path=/trunk/libdom/; revision=13560
* Take reference to namespace for attribute list node.Michael Drake2012-02-161-0/+1
| | | | svn path=/trunk/libdom/; revision=13450
* Fix build, and don't overwrite new_list_node with the cloned attrJohn Mark Bell2012-02-161-1/+4
| | | | svn path=/trunk/libdom/; revision=13449
* Add documentation comments.Michael Drake2012-02-151-3/+31
| | | | svn path=/trunk/libdom/; revision=13448
* Use list for element attributes.Michael Drake2012-02-151-434/+446
| | | | svn path=/trunk/libdom/; revision=13444
* Provide custom API to ease optimal binding to libcssJohn Mark Bell2012-02-111-0/+37
| | | | svn path=/trunk/libdom/; revision=13440
* Fix build with GCC 4.6John Mark Bell2011-12-211-12/+0
| | | | svn path=/trunk/libdom/; revision=13317
* Merge branches/jmb/dom-alloc-purge back to trunkJohn Mark Bell2011-12-211-409/+213
| | | | svn path=/trunk/libdom/; revision=13316
* s/struct dom_string/dom_string/gJohn Mark Bell2011-04-071-51/+51
| | | | svn path=/trunk/libdom/; revision=12172
* Merge branches/struggleyb/libdom-html to trunk.John Mark Bell2010-08-301-4/+51
| | | | | | 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-44/+21
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Split the _dom_element_destroy into two functions.Bo Yang2009-08-171-15/+26
| | | | svn path=/trunk/dom/; revision=9330
* Remove an unused parameter 'result'.Bo Yang2009-08-171-16/+9
| | | | svn path=/trunk/dom/; revision=9327
* Fix up some ref/unref error produced from _dispatch_ usage.Bo Yang2009-08-141-15/+31
| | | | | | Now, the trunk/dom test result are consistent with Core. svn path=/trunk/dom/; revision=9279
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-131-20/+202
| | | | svn path=/trunk/dom/; revision=9236
* Make the failed 5 testcases passed in DOMTS Core level2. Bo Yang2009-08-121-0/+3
| | | | svn path=/trunk/dom/; revision=9211
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-111-600/+1431
| | | | svn path=/trunk/dom/; revision=9191
* Modify NamedNodeMap, note that there is no vtable for this type because it ↵Bo Yang2009-03-231-6/+8
| | | | | | is not in the DOM inherit hierarchy. And the internal API used between different DOM parts should use struct dom_node_internal instead of struct dom_node. svn path=/trunk/dom/; revision=6821
* Fix the spelling initialize -> initialise.Bo Yang2009-03-201-3/+3
| | | | svn path=/trunk/dom/; revision=6809
* Convert DOMElement interface to use vtable structure.Bo Yang2009-03-201-69/+128
| | | | svn path=/trunk/dom/; revision=6808
* Make the dom string class more useful.John Mark Bell2007-10-031-1/+1
| | | | | | | | 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
* Implement dom_element_get_attribute_ns()John Mark Bell2007-09-291-29/+259
| | | | | | | | | | Implement dom_element_set_attribute_ns() Implement dom_element_remove_attribute_ns() Implement dom_element_get_attribute_node_ns() Implement dom_element_set_attribute_node_ns() Implement dom_element_has_attribute_ns() svn path=/trunk/dom/; revision=3608
* Modify dom_node_initialise() API to permit specification of namespace URI ↵John Mark Bell2007-09-271-7/+11
| | | | | | | | 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-35/+3
| | | | | | | | | | | 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