summaryrefslogtreecommitdiff
path: root/src/core/element.c
Commit message (Collapse)AuthorAgeFilesLines
* Element: Change API to return a reference to callers.Michael Drake2021-07-051-12/+9
|
* Element: API docs: Reword based on review.Michael Drake2021-07-051-3/+12
|
* Element: Improve API documentation: Returned nodes aren't reffed.Michael Drake2021-07-051-3/+3
|
* Constify vtables.Michael Drake2021-02-021-2/+2
|
* element: Mirror parent NULL check in dom_element_is_default_namespace()Daniel Silverstone2020-10-021-1/+6
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* element: Issue DOMSubtreeModified *after* updating attr valueDaniel Silverstone2019-08-041-4/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Fix compiler warning.Michael Drake2016-02-071-1/+1
| | | | error: expression result unused [-Werror,-Wunused-value]
* Fix: Handle class list allocation failure in HTMLElement copy constructor.Michael Drake2016-02-051-5/+13
|
* Split out element content copying from allocation in copy constructor.Michael Drake2016-02-051-25/+36
| | | | | | | This creates a new _dom_element_copy_internal() function, which does the copying. The old _dom_element_copy() continues to do the allocation. This follows the same pattern as in dom_node_internal class.
* Style: Fix sporadic use of spaces for indentation in element copy constructor.Michael Drake2016-02-051-5/+5
|
* 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