summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* node.c: _dom_node_set_text_content() fix leaksDaniel Silverstone2019-06-031-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 Silverstone2019-05-041-0/+30
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Begin to support SCRIPT elements flagsDaniel Silverstone2019-05-042-0/+40
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* 99.9% of all events are trusted, so default to trustedDaniel Silverstone2019-05-031-1/+1
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Fix libdom departures from "always return a ref" in public API.Michael Drake2019-02-164-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`.
* Attempt to fix m68k cross-compile warnings.Michael Drake2018-08-071-2/+2
|
* Attempt to fix m68k cross-compile warnings.Michael Drake2018-08-071-11/+10
|
* Attempt to squash m68k cross-compile warnings.Michael Drake2018-08-071-2/+2
|
* Attempt to appease m68k CI cross-compiler.Michael Drake2018-08-071-5/+1
|
* HTMLTableRow.insertCell: Fix refcounting and error paths.Michael Drake2018-08-031-13/+16
|
* HTMLTableElement.deleteRow: Squash leaks and fix error paths.Michael Drake2018-08-031-20/+25
|
* HTMLDocument: Squash leaks of document.documentElement.Michael Drake2018-08-031-4/+12
|
* HTMLDocument.body: Squash leak of node list.Michael Drake2018-08-031-0/+1
|
* HTMLCollection.namedItem: Squash leak of id_name.Michael Drake2018-08-031-15/+17
|
* dom_html_table_row_element_get_row_index: Squash t_head node leak.Michael Drake2018-08-031-5/+3
|
* HTMLTableElement.insertRow: Fix lifetimes and error handling.Michael Drake2018-08-031-52/+74
|
* HTMLTableSectionElement.insertRow: Fix lifetimes and error handling.Michael Drake2018-08-031-25/+25
|
* Make API note that unreffing is up to the caller for dom_nodelist_item()Daniel Silverstone2018-07-291-0/+3
|
* Correct COLLECT logic in walk_logic_adjacent_text_in_order to stop leakDaniel Silverstone2018-07-291-8/+19
|
* Unregister all instances of a listenerDaniel Silverstone2017-02-041-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 Drake2017-02-041-0/+1
|
* Add getter/setter for event_target's is_trustedDaniel Silverstone2016-11-192-0/+30
|
* Add an is_initialised flag to eventsDaniel Silverstone2016-11-192-0/+18
|
* Add support to retrieve if an event is in dispatchDaniel Silverstone2016-11-191-0/+13
|
* DOM Document: Fix find by ID, when called with global tree root.Michael Drake2016-09-011-14/+14
| | | | Fixes: NetSurf bug #2466.
* Fix Coverity #1350096.Michael Drake2016-02-091-1/+1
|
* Fix compiler warning.Michael Drake2016-02-071-1/+1
| | | | error: expression result unused [-Werror,-Wunused-value]
* make unused variable macro more portableVincent Sanders2016-02-061-1/+1
|
* Fix: Proper copy constructor for HTMLUListElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLTitleElement.Michael Drake2016-02-052-3/+41
|
* Fix: HTMLTextAreaElement's copy constructor copies its specialised members.Michael Drake2016-02-051-0/+9
|
* Provide generic copy constructor for HTMLTextAreaElement.Michael Drake2016-02-052-3/+41
|
* Cleanup: Remove odd declaration of callback outside header guard.Michael Drake2016-02-052-2/+1
|
* Fix: Proper copy constructor for HTMLTableSectionElement.Michael Drake2016-02-052-3/+41
|
* Cleanup: Remove odd declaration of callback outside header guard.Michael Drake2016-02-052-2/+1
|
* Fix: Proper copy constructor for HTMLTableRowElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLTableColElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLTableCellElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLTableCaptionElement.Michael Drake2016-02-052-3/+41
|
* Cleanup: Don't put static function in header.Michael Drake2016-02-052-5/+2
|
* Cleanup: Remove odd declaration of callbacks outside header guard.Michael Drake2016-02-052-4/+2
|
* Fix: Proper copy constructor for HTMLTableElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLStyleElement.Michael Drake2016-02-052-3/+41
|
* Fix: HTMLSelectElement's copy constructor copies its specialised members.Michael Drake2016-02-051-0/+6
|
* Provide generic copy constructor for HTMLSelectElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLScriptElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLQuoteElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLPreElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLParamElement.Michael Drake2016-02-052-3/+41
|
* Fix: Proper copy constructor for HTMLParagraphElement.Michael Drake2016-02-052-3/+41
|