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> | ||||
* | Assert instead of checking | Daniel Silverstone | 2019-05-06 | 1 | -1/+4 |
| | | | | | | | At this point, we MUST have an element created, so assert it rather than half-heartedly checking. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Add dom_node_contains() | Daniel Silverstone | 2019-05-04 | 2 | -0/+40 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Begin to support SCRIPT elements flags | Daniel Silverstone | 2019-05-04 | 4 | -0/+91 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | 99.9% of all events are trusted, so default to trusted | Daniel Silverstone | 2019-05-03 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Include: Switch to using stdint.h rather than inttypes.h | Daniel Silverstone | 2019-02-16 | 1 | -1/+1 |
| | | | | | | | | We don't need the formatting strings, so instead include just the types themselves. This has the beneficial effect of making libdom compilable under WIN32. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | DOMTSHandler: Unref nodes in for-each blocks | Daniel Silverstone | 2019-02-16 | 1 | -2/+16 |
| | | | | | | | In order to satisfy (hopefully) the last of the sanitize checks, ensure that we unref nodes during `for-each` iterations. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Fix libdom departures from "always return a ref" in public API. | Michael Drake | 2019-02-16 | 4 | -4/+3 |
| | | | | | | | | | | | | | | | | | | | The DOM test code expects nodes returned by libdom APIs to always be reffed. So this change refs them. The remaining leaks detected by address sanitiser in the dom test suite are a problem with the DOM test generator: * For test_level1_html_HTMLSelectElement08, the problem is that in the while loop, it doesn't unref `voption` at the end of the loop, in the test code. * For test_level1_html_HTMLTableElement07, the problem is the while loop doesn't unref `vrow` at the end of the loop in the test code. * For test_level1_html_HTMLTableElement09, it's the same for variable, `vbodies`. | ||||
* | Update component version for releaserelease/0.3.3 | Vincent Sanders | 2018-08-22 | 1 | -1/+1 |
| | |||||
* | Attempt to fix m68k cross-compile warnings. | Michael Drake | 2018-08-07 | 1 | -2/+2 |
| | |||||
* | Attempt to fix m68k cross-compile warnings. | Michael Drake | 2018-08-07 | 1 | -11/+10 |
| | |||||
* | Attempt to squash m68k cross-compile warnings. | Michael Drake | 2018-08-07 | 1 | -2/+2 |
| | |||||
* | Attempt to appease m68k CI cross-compiler. | Michael Drake | 2018-08-07 | 1 | -5/+1 |
| | |||||
* | DOMTSHandler: Ensure HTMLOptionsCollection is unreffed. | Michael Drake | 2018-08-03 | 1 | -2/+3 |
| | |||||
* | HTMLTableRow.insertCell: Fix refcounting and error paths. | Michael Drake | 2018-08-03 | 1 | -13/+16 |
| | |||||
* | HTMLTableElement.deleteRow: Squash leaks and fix error paths. | Michael Drake | 2018-08-03 | 1 | -20/+25 |
| | |||||
* | HTMLDocument: Squash leaks of document.documentElement. | Michael Drake | 2018-08-03 | 1 | -4/+12 |
| | |||||
* | HTMLDocument.body: Squash leak of node list. | Michael Drake | 2018-08-03 | 1 | -0/+1 |
| | |||||
* | HTMLCollection.namedItem: Squash leak of id_name. | Michael Drake | 2018-08-03 | 1 | -15/+17 |
| | |||||
* | dom_html_table_row_element_get_row_index: Squash t_head node leak. | Michael Drake | 2018-08-03 | 1 | -5/+3 |
| | |||||
* | HTMLTableElement.insertRow: Fix lifetimes and error handling. | Michael Drake | 2018-08-03 | 2 | -53/+75 |
| | |||||
* | HTMLTableSectionElement.insertRow: Fix lifetimes and error handling. | Michael Drake | 2018-08-03 | 1 | -25/+25 |
| | |||||
* | Cleanups in the DOMTS should be safe | Daniel Silverstone | 2018-07-29 | 1 | -1/+1 |
| | |||||
* | More cleanup for iterating in test suite | Daniel Silverstone | 2018-07-29 | 2 | -1/+7 |
| | |||||
* | Various extra cleanups in list implementation for test suite | Daniel Silverstone | 2018-07-29 | 1 | -1/+5 |
| | |||||
* | Make API note that unreffing is up to the caller for dom_nodelist_item() | Daniel Silverstone | 2018-07-29 | 1 | -0/+3 |
| | |||||
* | Unref nodes properly in foreach | Daniel Silverstone | 2018-07-29 | 1 | -0/+7 |
| | |||||
* | Clean up nodes and lists | Daniel Silverstone | 2018-07-29 | 1 | -0/+8 |
| | |||||
* | Update libdom python gdb to python 3 | Daniel Silverstone | 2018-07-29 | 1 | -4/+4 |
| | |||||
* | Ensure we clean up if load_html fails in the test runner | Daniel Silverstone | 2018-07-29 | 1 | -1/+11 |
| | |||||
* | Correct COLLECT logic in walk_logic_adjacent_text_in_order to stop leak | Daniel Silverstone | 2018-07-29 | 1 | -8/+19 |
| | |||||
* | README: Document testsuite requirement. | Michael Drake | 2018-07-28 | 1 | -0/+1 |
| | |||||
* | update component version for 0.3.2 releaserelease/0.3.2 | Vincent Sanders | 2017-10-13 | 1 | -1/+1 |
| | |||||
* | Unregister all instances of a listener | Daniel Silverstone | 2017-02-04 | 1 | -3/+12 |
| | | | | | | | Sometimes we register a listener a lot on an event target. This change allows us to pass NULL as the event type to the remove call in order to remove every instance of the given listener, regardless of event type and capture vs. bubble. | ||||
* | Change dom node type count to last value plus one. | Michael Drake | 2017-02-04 | 2 | -1/+2 |
| | |||||
* | Ignore http and https addresses when fetching entity refs | Chris Young | 2016-11-20 | 1 | -0/+13 |
| | | | | | The fopen() causes a requester on AmigaOS which I'm bored of hearing about. See also bug 2313 | ||||
* | Add getter/setter for event_target's is_trusted | Daniel Silverstone | 2016-11-19 | 3 | -0/+38 |
| | |||||
* | Add an is_initialised flag to events | Daniel Silverstone | 2016-11-19 | 2 | -0/+18 |
| | |||||
* | Add support to retrieve if an event is in dispatch | Daniel Silverstone | 2016-11-19 | 2 | -0/+21 |
| | |||||
* | Prepare for release of 0.3.1release/0.3.1 | Daniel Silverstone | 2016-11-19 | 1 | -1/+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. | ||||
* | Slightly better fix for afl issues | Daniel Silverstone | 2016-08-27 | 1 | -20/+15 |
| | |||||
* | fix expat parser adding comment if no node is being constructed | Vincent Sanders | 2016-08-24 | 1 | -0/+5 |
| | |||||
* | protect expat parser from null current node | Vincent Sanders | 2016-08-24 | 1 | -0/+17 |
| | |||||
* | Revert "Don't attempt to fetch external entity references blindly with fopen" | Chris Young | 2016-08-23 | 1 | -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 fopen | Chris Young | 2016-08-23 | 1 | -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. | ||||
* | Update component version for releaserelease/0.3.0 | Vincent Sanders | 2016-02-16 | 1 | -1/+1 |
| | |||||
* | 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] | ||||
* | make unused variable macro more portable in expat binding | Vincent Sanders | 2016-02-06 | 1 | -1/+1 |
| |