Commit Graph

137 Commits

Author SHA1 Message Date
Pierre Tachoire
9363acf4ec glue mimalloc with netsurf C libs 2024-04-19 11:46:42 +02:00
Pierre Tachoire
49e3d569de dom: fix processing instruction clone 2024-04-05 16:34:22 +02:00
Pierre Tachoire
45172461c7 Merge pull request #182 from lightpanda-io/innerHTML
dom: innerHTML
2024-02-29 15:47:48 +01:00
Pierre Tachoire
63e19c7704 netsurf: factorize document parsing 2024-02-29 14:14:13 +01:00
Pierre Tachoire
399c7def51 browser: inject document URL 2024-02-29 13:37:08 +01:00
Pierre Tachoire
c0e2377e16 dom: implement innerHTML setter 2024-02-27 16:11:11 +01:00
Pierre Tachoire
10777a7b46 Merge pull request #166 from lightpanda-io/xhr
XHR
2024-02-15 16:54:06 +01:00
Pierre Tachoire
76df0a1ff7 xhr: fix ProgressEvent implementation 2024-02-15 16:42:59 +01:00
Pierre Tachoire
86a69da773 xhr: add ProgressEvent type 2024-02-15 16:42:56 +01:00
Pierre Tachoire
35ede4d79c netsurf: declare EventTargetTBase as extern
to guarantee the memory layout
2024-02-15 16:15:14 +01:00
Pierre Tachoire
069313817a netsurf: use EventTargetTBase field to cast EventTarget 2024-02-15 15:59:45 +01:00
Pierre Tachoire
bc7055c98d netsurf: fix eventTargetVtable 2024-02-15 14:49:24 +01:00
Pierre Tachoire
ae28d9d6a4 netsurf: use the right type for EventTarget cast 2024-02-15 14:28:14 +01:00
Pierre Tachoire
951bf4b501 events: fix remove_event_listener typo 2024-02-12 09:38:58 +01:00
Pierre Tachoire
25d4aedb1d events: add mssing iter_event_listener in EventTargetTBase 2024-02-12 09:38:19 +01:00
Pierre Tachoire
5aef5a21ac browser: dispatch DOMContentLoaded event 2024-02-05 16:41:11 +01:00
Pierre Tachoire
9050f2586b events: add EventTargetBase
EventTargetBase implements event target vtable for pure zig struct
2024-02-05 16:41:11 +01:00
Francis Bouvier
ce3c533680 Add deinit for EventTarget (eventTargetRemoveAllEventListeners)
And unify the way allocator is used on eventTarget add/remove listener

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-29 08:01:35 +01:00
Francis Bouvier
9ba4c69a92 Add removeEventListener
And check if callback has been already added in addEventListener

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-24 11:43:16 +01:00
Francis Bouvier
3483dfa81e Check if event target has listener before adding it
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-23 02:56:12 +01:00
Francis Bouvier
2faf584d36 Updates, fix and Event properties
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-18 22:00:36 +01:00
Francis Bouvier
86cc3d25dc Move some details implementation from EventTarget to the parser
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-17 15:29:48 +01:00
Francis Bouvier
ae6a714573 First implementation of Event system
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-17 00:12:57 +01:00
Pierre Tachoire
9a050fe069 html: add missing applet, basefont and keygen tags 2024-01-22 11:08:46 +01:00
Pierre Tachoire
45504a50e7 html: add menu and menuitem 2024-01-19 17:44:28 +01:00
Pierre Tachoire
f7752675bc html: add strong tag 2024-01-19 17:42:43 +01:00
Pierre Tachoire
c2106b4b77 html: add em tag 2024-01-19 17:42:22 +01:00
Pierre Tachoire
84aad08806 dom: add element.replaceChildren 2024-01-18 09:53:20 +01:00
Pierre Tachoire
2981703b7f netsurf: add TODO on encoding change error code 2024-01-12 15:40:43 +01:00
Pierre Tachoire
0f24660707 netsurf: fix parser error values 2024-01-12 15:22:30 +01:00
Pierre Tachoire
028cd2331f netsurf: pass encoding to the parser 2024-01-12 15:22:30 +01:00
Pierre Tachoire
d92c121ecf Merge pull request #149 from lightpanda-io/fix-parse-chunk
netsurf: fix document html parse reader loop
2024-01-10 17:41:47 +01:00
Pierre Tachoire
2011e0b642 Merge pull request #147 from lightpanda-io/fix-attr-crash
dom: attr: fix crash w/o parent
2024-01-10 17:34:03 +01:00
Pierre Tachoire
390f9f408c netsurf: fix document html parse reader loop 2024-01-10 17:31:52 +01:00
Pierre Tachoire
cb3abe58c2 dom: attr: fix crash w/o parent 2024-01-09 17:45:14 +01:00
Pierre Tachoire
ca6bb577c6 Document: use document cast to node 2024-01-09 14:24:55 +01:00
Pierre Tachoire
be1e55272a DocumentHTML: cast directly document to node 2024-01-09 14:13:52 +01:00
Pierre Tachoire
a4d44081e5 netsurf: add missing inline 2024-01-09 14:13:47 +01:00
Pierre Tachoire
970d51e4b0 dom: DocumentHTML title 2024-01-09 14:13:46 +01:00
Pierre Tachoire
ea80e5e4a1 dom: DocumentHTML getters 2024-01-09 14:13:46 +01:00
Pierre Tachoire
5496e68a02 netsurf: remove documentHTMLParseFromFile 2024-01-09 11:35:18 +01:00
Pierre Tachoire
cc3a7ec4a1 netsurf: fix DocumentHTMLParseFromStr and add test 2024-01-09 11:33:02 +01:00
Pierre Tachoire
57e948ded5 Merge pull request #142 from lightpanda-io/attr
dom: implement Attr interface
2024-01-08 17:39:27 +01:00
Pierre Tachoire
1c55269342 netsurf: use 1024 bytes for fil read buffer 2024-01-08 16:23:22 +01:00
Pierre Tachoire
ac99aab3fd netsurf: better parsing error 2024-01-08 16:02:54 +01:00
Pierre Tachoire
0159051b17 netsurf: remove deprecated API for parsing HTML 2024-01-08 16:02:53 +01:00
Pierre Tachoire
9f77ba01bb netsurf: rewrite wrapper.ci func in pure zig 2024-01-08 16:02:53 +01:00
Pierre Tachoire
3b851f889e dom: add Element AttributeNode funcs 2024-01-03 14:44:24 +01:00
Pierre Tachoire
152014fe16 dom: implement Attr interface 2024-01-03 14:20:42 +01:00
Pierre Tachoire
82c836c80d dom: document first element can be null 2023-12-13 13:12:01 +01:00