Commit Graph

566 Commits

Author SHA1 Message Date
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
85a8decffc Merge pull request #173 from lightpanda-io/update
Update jsruntime
2024-01-29 13:01:13 +01:00
Francis Bouvier
3d55e292ce Update jsruntime
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-29 13:00:44 +01:00
Francis Bouvier
d24396333d Merge pull request #156 from lightpanda-io/events
First implementation of Event system
2024-01-29 12:59:34 +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
6bac8763f7 Merge pull request #165 from lightpanda-io/update_libdom
Update libdom
2024-01-24 11:47:19 +01:00
Francis Bouvier
1bf1f5a0aa Update libdom
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-24 11:46:06 +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
Pierre Tachoire
30d52dff3f Merge pull request #164 from lightpanda-io/html-em
Add missing html tags
2024-01-22 11:41:57 +01:00
Pierre Tachoire
9a050fe069 html: add missing applet, basefont and keygen tags 2024-01-22 11:08:46 +01:00
Francis Bouvier
e7dcf426f3 Update WPT with events files
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-20 17:47:29 +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
Francis Bouvier
b2d5ee237b Merge pull request #163 from lightpanda-io/upgrade
Upgrade libdom
2024-01-19 16:54:25 +01:00
Francis Bouvier
f32fc05f62 Upgrade libdom
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-01-19 16:53:57 +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
Pierre Tachoire
2112aca6fb Merge pull request #162 from lightpanda-io/upgrade-jsruntime
upgrade jsruntime
2024-01-19 15:33:22 +01:00
Pierre Tachoire
b53c6be5ba upgrade jsruntime 2024-01-19 15:04:55 +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
Pierre Tachoire
2a39f9fa2c Merge pull request #160 from lightpanda-io/upgrade-jsruntime
upgrade jsruntime
2024-01-19 09:24:46 +01:00
Pierre Tachoire
aef6c8156a upgrade jsruntime 2024-01-19 09:14:33 +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
Pierre Tachoire
77185f9468 Merge pull request #132 from lightpanda-io/dom-parentnode-prepend
Dom parentnode prepend/append/replaceChildren
2024-01-18 10:15:24 +01:00
Pierre Tachoire
d8df27ead7 dom: refacto append/prepend/replaceChild in Node 2024-01-18 09:59:26 +01:00
Pierre Tachoire
b33fc68898 dom: add doc.prepend/append 2024-01-18 09:53:21 +01:00
Pierre Tachoire
f8484e9f47 dom: add parentnode test 2024-01-18 09:53:21 +01:00
Pierre Tachoire
c0643398d7 dom: declare document prepend/append/replaceChildren 2024-01-18 09:53:20 +01:00
Pierre Tachoire
84aad08806 dom: add element.replaceChildren 2024-01-18 09:53:20 +01:00
Pierre Tachoire
3af716d934 dom: add element prepend and append 2024-01-18 09:53:16 +01:00
Pierre Tachoire
ad317af5a9 Merge pull request #159 from lightpanda-io/wpt-success-detailed
wpt: always return detailed result
2024-01-18 09:15:54 +01:00
Pierre Tachoire
64a7f3a3f0 wpt: always return detailed result
We want detailed subcase result for successful cases
2024-01-18 09:00:45 +01:00
Pierre Tachoire
ee3b62de56 Merge pull request #137 from lightpanda-io/window
start for loader and browser APi
2024-01-17 18:33:41 +01:00
Pierre Tachoire
a2e266514f dom: extract walker from html_collection to its own file 2024-01-17 18:25:05 +01:00
Pierre Tachoire
d22b7a6d29 browser: use an arena for the page 2024-01-17 18:22:01 +01:00
Pierre Tachoire
40dac207f9 window: add event target prototype 2024-01-17 18:22:01 +01:00
Pierre Tachoire
2bbaa77891 window: document is null by default 2024-01-17 18:22:00 +01:00
Pierre Tachoire
5362fcc7b4 browser: use charset from headers to parse doc 2024-01-17 18:22:00 +01:00
Pierre Tachoire
01a894b7d0 mime: parse charset and boundary from content-type 2024-01-17 18:22:00 +01:00
Pierre Tachoire
69bbd62edf browser: pass the session to the page 2024-01-17 18:21:59 +01:00
Pierre Tachoire
c2a842b80e browser: remove undefined for session attr 2024-01-17 18:21:59 +01:00
Pierre Tachoire
e8879cd6db browser: add TODO for concurrency 2024-01-17 18:21:59 +01:00
Pierre Tachoire
ea8c259c25 browser: refacto isJS func 2024-01-17 18:21:58 +01:00
Pierre Tachoire
55f69b3ae7 browser: create a fetchResult func 2024-01-17 18:21:58 +01:00
Pierre Tachoire
2efda8f452 browser: no need for allocator in the struct 2024-01-17 18:21:58 +01:00
Pierre Tachoire
07be51cd1d session: self destroy 2024-01-17 18:21:57 +01:00