Commit Graph

510 Commits

Author SHA1 Message Date
Pierre Tachoire
7d91f7992c dom: first draft for hierachy check in nodes 2024-05-22 14:56:40 +02:00
Pierre Tachoire
b2df0c1541 dom: implement document fragment constructor 2024-05-22 14:56:40 +02:00
Pierre Tachoire
d823eebce5 dom: remove useless TODO 2024-05-22 14:56:40 +02:00
Pierre Tachoire
55b80ecd15 dom: implement text constructor 2024-05-22 14:56:39 +02:00
Pierre Tachoire
14e1c44eb0 dom: implement comment constructor 2024-05-22 14:56:29 +02:00
Pierre Tachoire
eef2fa94d0 text: return error on constructor
Blocked by #102
2024-05-22 14:45:40 +02:00
Pierre Tachoire
49ee5e4e68 comment: return error on constructor
Blocked by https://github.com/lightpanda-io/browsercore/issues/102
2024-05-22 14:45:39 +02:00
Pierre Tachoire
b7f589ee1a dom: fix document constructor 2024-05-22 14:45:39 +02:00
Pierre Tachoire
e18d04a799 userctx: inject user context 2024-05-22 14:45:34 +02:00
Pierre Tachoire
ead08557bf script: implement interface 2024-05-14 16:19:22 +02:00
Pierre Tachoire
6d808d89b0 anchor: implement set_host 2024-05-14 13:44:27 +02:00
Pierre Tachoire
6b42b5abdd anchor: implement HTMLHyperlinkElementUtils interface
https://html.spec.whatwg.org/#htmlhyperlinkelementutils
2024-05-14 13:44:27 +02:00
Pierre Tachoire
e12d6e85f0 url: add origin getter 2024-05-14 13:44:26 +02:00
Pierre Tachoire
7da440e9d3 anchro: implement url manipulation 2024-05-14 13:44:26 +02:00
Pierre Tachoire
d93a065db9 url: improve url format 2024-05-14 13:44:26 +02:00
Pierre Tachoire
8d6ee42096 anchor: follow up 2024-05-14 13:44:25 +02:00
Pierre Tachoire
df6a905683 dom: add target and href accessors to anchor 2024-05-14 13:44:16 +02:00
Pierre Tachoire
2a3a243d1c add AGPL license header in zig files 2024-05-13 20:51:36 +02:00
Pierre Tachoire
e1aec8bc07 Merge pull request #230 from lightpanda-io/dom-url
URL api
2024-05-13 11:26:55 +02:00
Pierre Tachoire
c6754d6a6e wpt: dispatch native event 2024-05-07 16:09:20 +02:00
Pierre Tachoire
edd0c7d0a3 browser: fix global object window 2024-05-07 15:59:00 +02:00
Pierre Tachoire
d0c741f3bb url: search query dynamic and encoded 2024-05-06 16:32:20 +02:00
Pierre Tachoire
a9842fd790 url: decode query 2024-05-06 15:06:03 +02:00
Pierre Tachoire
f7040153cd url: implement query parsing 2024-05-06 12:45:14 +02:00
Pierre Tachoire
e42b03acd8 mime: extract string parser 2024-05-06 12:44:45 +02:00
Pierre Tachoire
28a87c2a47 url: first draft 2024-05-03 16:18:11 +02:00
Francis Bouvier
df82d25e91 Return error if a Page already exists in Session
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-05-02 17:52:23 +02:00
Francis Bouvier
bcf4083f9c Keep reference of current Page in Session
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-05-02 17:52:14 +02:00
Pierre Tachoire
89bfc8ccdc Merge pull request #222 from lightpanda-io/webstorage
storage: first implementation of webstorage API
2024-05-02 15:35:22 +02:00
Pierre Tachoire
8b47d72079 event: set this arg on callback 2024-05-02 15:25:41 +02:00
Pierre Tachoire
61357ee7e0 storage: update comment about dispatch event 2024-05-02 15:21:21 +02:00
Pierre Tachoire
d155421a40 netsurf: add missing netsurf DOM errors 2024-04-29 17:42:38 +02:00
Pierre Tachoire
9f2bad7498 dom: an event type can be null
In this case we return empty string
2024-04-29 16:31:37 +02:00
Pierre Tachoire
3c5d601622 storage: first implementation of webstorage API 2024-04-24 11:54:41 +02:00
Pierre Tachoire
304a28a79d mimalloc: add strdup and strndup overrride 2024-04-19 11:48:03 +02:00
Pierre Tachoire
3834ebcfa4 replace calloc with mimalloc 2024-04-19 11:46:42 +02:00
Pierre Tachoire
9363acf4ec glue mimalloc with netsurf C libs 2024-04-19 11:46:42 +02:00
Francis Bouvier
76c88d049f setCAllocator
Replace custom malloc functions in netsurf libs with a global Zig allocator.

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2024-04-19 11:46:41 +02:00
Pierre Tachoire
e2a8a74906 Merge pull request #209 from lightpanda-io/bench
Add benchmark output when running js tests
2024-04-10 11:20:41 +02:00
Pierre Tachoire
cb2b488d27 bench: prepare v8, libdom and main metrics 2024-04-10 09:50:36 +02:00
Pierre Tachoire
a9e2569a1b bench: display duration in ms 2024-04-10 09:42:15 +02:00
Pierre Tachoire
e3f7504572 test: rename js bench into browser 2024-04-08 18:01:38 +02:00
Pierre Tachoire
d080dde361 test: bench: use pretty for console output 2024-04-08 14:54:55 +02:00
Pierre Tachoire
32349e472c test: add test arguments and expose json benchmark result 2024-04-08 14:40:52 +02:00
Pierre Tachoire
49e3d569de dom: fix processing instruction clone 2024-04-05 16:34:22 +02:00
Pierre Tachoire
d58045c330 Merge pull request #196 from lightpanda-io/css
css: implement css query
2024-04-05 10:57:41 +02:00
Pierre Tachoire
52d3f3e966 deps: remove lexbor 2024-03-28 11:13:17 +01:00
Pierre Tachoire
8eb4de9ccb css: ensure node is an element before accessing to attr 2024-03-26 11:08:25 +01:00
Pierre Tachoire
4d5f6d42fa dom: use the css matcher for DOM 2024-03-26 10:25:50 +01:00
Pierre Tachoire
0fa49b99bf css: add README 2024-03-25 18:35:28 +01:00