Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | node.c: _dom_node_set_text_content() fix leaks | Daniel Silverstone | 2019-06-03 | 1 | -4/+9 |
| | | | | | | | There were a number of text node leaks in the function to set a node's text content. This corrects those. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Add dom_node_contains() | Daniel Silverstone | 2019-05-04 | 1 | -0/+30 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Make API note that unreffing is up to the caller for dom_nodelist_item() | Daniel Silverstone | 2018-07-29 | 1 | -0/+3 |
| | |||||
* | Correct COLLECT logic in walk_logic_adjacent_text_in_order to stop leak | Daniel Silverstone | 2018-07-29 | 1 | -8/+19 |
| | |||||
* | Change dom node type count to last value plus one. | Michael Drake | 2017-02-04 | 1 | -0/+1 |
| | |||||
* | DOM Document: Fix find by ID, when called with global tree root. | Michael Drake | 2016-09-01 | 1 | -14/+14 |
| | | | | Fixes: NetSurf bug #2466. | ||||
* | Fix Coverity #1350096. | Michael Drake | 2016-02-09 | 1 | -1/+1 |
| | |||||
* | Fix compiler warning. | Michael Drake | 2016-02-07 | 1 | -1/+1 |
| | | | | error: expression result unused [-Werror,-Wunused-value] | ||||
* | Fix: Handle class list allocation failure in HTMLElement copy constructor. | Michael Drake | 2016-02-05 | 1 | -5/+13 |
| | |||||
* | Split out element content copying from allocation in copy constructor. | Michael Drake | 2016-02-05 | 2 | -25/+41 |
| | | | | | | | 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 Drake | 2016-02-05 | 1 | -5/+5 |
| | |||||
* | Optimise dom_string_tolower where interned string was already lower case. | Michael Drake | 2016-01-31 | 1 | -23/+45 |
| | | | | | Now we detect that the string was lower case, and return a new ref to the same dom_string. | ||||
* | Merge branch 'tlsa/faster-strings' | Michael Drake | 2016-01-29 | 1 | -31/+9 |
|\ | |||||
| * | Optimise dom_string_(toupper|tolower) functions. | Michael Drake | 2016-01-29 | 1 | -31/+9 |
| | | | | | | | | | | Since we don't support non-ascii strings here, the lpu calls to step though the characters was an unecessary overhead. | ||||
* | | Further optimise event dispatch. | Michael Drake | 2016-01-29 | 1 | -5/+20 |
| | | | | | | | | | | Only add event targets to the array of targets for capture/bubbling if it is actually listening for the event type we're dispatching. | ||||
* | | Optimise event dispatch. | Michael Drake | 2016-01-29 | 1 | -20/+57 |
| | | | | | | | | | | | | | | - Only allocate array of event targets when there is at least one target listening. - Only add targets to the list if they have got at least one listener registered. | ||||
* | | Remove parameter documentation for non-existant parameter. | Michael Drake | 2016-01-29 | 1 | -1/+0 |
| | | |||||
* | | Don't add target event to list of capture/bubbling event targets. | Michael Drake | 2016-01-29 | 1 | -4/+2 |
|/ | |||||
* | Unref document uri on finalisation. | Michael Drake | 2016-01-22 | 1 | -0/+1 |
| | |||||
* | Fix leak of dom string on error path. Coverity #1347877. | Michael Drake | 2016-01-10 | 1 | -0/+1 |
| | |||||
* | Create documents with initial URI of "about:blank". | Michael Drake | 2016-01-07 | 1 | -3/+23 |
| | | | | Clients can set the URI on a document with dom_document_set_uri() | ||||
* | Remove call to non-existant function. | Michael Drake | 2015-12-20 | 2 | -25/+1 |
| | | | | | | There was no implementation of dom_document_get_base, and call to it were trying to run code at 0x0. Replace with call to dom_document_get_uri instead. | ||||
* | Ensure we don't capture or bubble on target | Daniel Silverstone | 2015-11-01 | 1 | -2/+2 |
| | |||||
* | Tweak the types on namednodemap | Daniel Silverstone | 2015-10-31 | 2 | -4/+4 |
| | |||||
* | Handle situation where we cleanup during target gathering | Daniel Silverstone | 2015-10-31 | 1 | -2/+2 |
| | |||||
* | Fix end-of-event phasing | Daniel Silverstone | 2015-10-31 | 1 | -13/+6 |
| | |||||
* | Add a _FINISHED event action callback | Daniel Silverstone | 2015-10-31 | 1 | -0/+8 |
| | | | | We can then use this for JS to hook cleanups into place. | ||||
* | Fix some doxygen warnings | Vincent Sanders | 2015-09-01 | 4 | -63/+62 |
| | |||||
* | Strip doc from event layer | Daniel Silverstone | 2015-08-21 | 2 | -5/+2 |
| | |||||
* | make core string handling functions cope with NULL dom_string being passed | Vincent Sanders | 2014-01-24 | 1 | -2/+17 |
| | |||||
* | ensure result value is propogated (coverity 1127073) | Vincent Sanders | 2014-01-24 | 1 | -4/+7 |
| | |||||
* | ensure dom_implementation_create_document_type() parameters are present ↵ | Vincent Sanders | 2014-01-24 | 1 | -5/+7 |
| | | | | (coverity 1127076) | ||||
* | fix sill automatic conversion typo | Vincent Sanders | 2014-01-24 | 1 | -1/+1 |
| | |||||
* | Fix STRIP_TRAILING to work fully when COLLAPSE isn't requested. | Michael Drake | 2014-01-24 | 1 | -2/+6 |
| | |||||
* | Strip and collapse whitespace when gathering html option values. | Michael Drake | 2014-01-23 | 4 | -2/+124 |
| | |||||
* | Prevent attempt to concatinate string with null. | Michael Drake | 2013-12-27 | 1 | -7/+11 |
| | |||||
* | Don't allocate array when client asks for element classes, just give pointer ↵ | Michael Drake | 2013-12-13 | 1 | -10/+4 |
| | | | | to internal array. | ||||
* | Fix some broken asserts | Daniel Silverstone | 2013-11-17 | 1 | -2/+2 |
| | |||||
* | fix error handling in walk_logic_adjacent_text() (coverity 1127084) | Vincent Sanders | 2013-11-08 | 1 | -5/+4 |
| | |||||
* | ensure _dom_element_set_attr_node does not leak on error paths (coverity ↵ | Vincent Sanders | 2013-11-08 | 1 | -3/+10 |
| | | | | 1127085) | ||||
* | dom_document_get_element_by_id increments the ref counter of any returned ↵ | Michael Drake | 2013-08-23 | 1 | -0/+3 |
| | | | | element. | ||||
* | Compare the name and prefix directly. Since this avoids string ↵ | Michael Drake | 2013-05-23 | 1 | -17/+5 |
| | | | | concatination, and (un)ref. | ||||
* | Name and prefix were already compared. Add sane namespace comparison. ↵ | Michael Drake | 2013-05-23 | 1 | -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 Drake | 2013-05-23 | 1 | -32/+65 |
| | | | | broken bit with TODO. | ||||
* | Notify user data handlers on deletion | John-Mark Bell | 2013-02-22 | 1 | -0/+5 |
| | |||||
* | add context for default action function | Vincent Sanders | 2013-02-19 | 4 | -10/+16 |
| | |||||
* | Fix use of incorrect variable in dom_string(_caseless)_isequal | John-Mark Bell | 2012-12-31 | 1 | -4/+4 |
| | |||||
* | Fix reference leak in error case. | John-Mark Bell | 2012-12-31 | 1 | -1/+3 |
| | |||||
* | Initialise *ret | John-Mark Bell | 2012-12-31 | 1 | -0/+2 |
| | |||||
* | Fix buffer overflow in event dispatch | John-Mark Bell | 2012-11-11 | 1 | -1/+6 |
| |