Commit Graph

646 Commits

Author SHA1 Message Date
Pierre Tachoire
4b75fd1036 xhr: rename onerr into onErr 2024-02-15 16:42:57 +01:00
Pierre Tachoire
4a9a0e5e3c xhr: progressevent accept null progressevent init 2024-02-15 16:42:57 +01:00
Pierre Tachoire
0acdadfec0 xhr: fix listeners setters 2024-02-15 16:42:57 +01:00
Pierre Tachoire
86a69da773 xhr: add ProgressEvent type 2024-02-15 16:42:56 +01:00
Pierre Tachoire
554a05d8dd xhr: fix getter/setter for callbacks 2024-02-15 16:42:56 +01:00
Pierre Tachoire
f791891314 xhr: dispatch generic events 2024-02-15 16:42:56 +01:00
Pierre Tachoire
8a61f0f454 xhr: yield each fetch steps 2024-02-15 16:42:55 +01:00
Pierre Tachoire
f3a1920d8f async: yield between fetch steps in test cli 2024-02-15 16:42:55 +01:00
Pierre Tachoire
cac1110993 xhr: add getResponseHeader 2024-02-15 16:42:55 +01:00
Pierre Tachoire
19b459b4db xhr: add status and statusText 2024-02-15 16:42:54 +01:00
Pierre Tachoire
5bd5905da7 xhr: implement responseText 2024-02-15 16:42:54 +01:00
Pierre Tachoire
3915c60913 xhr: handle response headers 2024-02-15 16:42:54 +01:00
Pierre Tachoire
6f46d76c93 xhr: implementation follow up 2024-02-15 16:42:53 +01:00
Pierre Tachoire
0693011ad3 async: remove context from loop impl init 2024-02-15 16:42:53 +01:00
Pierre Tachoire
89409a4847 xhr: add a setOnload due to a setter issue
see https://lightpanda.slack.com/archives/C05TRU6RBM1/p1706708213838989
2024-02-15 16:42:53 +01:00
Pierre Tachoire
c2bc48ba0f xhr: fix implementation errors 2024-02-15 16:42:52 +01:00
Pierre Tachoire
8b6d7d0db0 xhr: implement prototype chain correctly 2024-02-15 16:42:52 +01:00
Pierre Tachoire
af20584ff2 async: remove useless http.zig
Replace it with a tested sample implementation
2024-02-15 16:42:52 +01:00
Pierre Tachoire
2b79a65d6d xhr: implement async http client 2024-02-15 16:42:51 +01:00
Pierre Tachoire
2fa66f93fd async: refacto with comptime generation 2024-02-15 16:42:51 +01:00
Pierre Tachoire
c200f60d7d async: add pure async http client 2024-02-15 16:42:51 +01:00
Pierre Tachoire
511e9b969a async: use std http client with loop 2024-02-15 16:42:50 +01:00
Pierre Tachoire
9d26a43aa8 async: copy stdlib http client 2024-02-15 16:42:50 +01:00
Pierre Tachoire
f714d86bb8 xhr: validate method 2024-02-15 16:42:50 +01:00
Pierre Tachoire
df7d17cd30 xhr: start implementation 2024-02-15 16:42:49 +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
25a971c440 window: remove useless import 2024-02-15 14:06:49 +01:00
Pierre Tachoire
fe31d81e29 wpt: allow .htm tests cases 2024-02-12 13:08:52 +01:00
Pierre Tachoire
e4b4719208 wpt: defer console log display 2024-02-12 13:08:52 +01:00
Pierre Tachoire
5619ed020c browser: dispatch window.load event 2024-02-12 12:12:13 +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
501b3caa8e Add legacy document.createEvent and event.initEvent
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-29 09:04:03 +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
de7fe8ba09 Add tests for Event
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-19 16:46:09 +01:00
Francis Bouvier
da0a54a0df Add more tests cases for event capture/target/bubbles phases
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-19 13:16:40 +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