Pierre Tachoire
408482470b
test: run classic test func
2024-01-11 16:13:07 +01:00
Francis Bouvier
a5dfa6cb44
Adopt global Types changes in jsruntime
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2024-01-10 11:56:53 +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
0159051b17
netsurf: remove deprecated API for parsing HTML
2024-01-08 16:02:53 +01:00
Pierre Tachoire
152014fe16
dom: implement Attr interface
2024-01-03 14:20:42 +01:00
Pierre Tachoire
76bdd94a3c
dom: reimplement nodelist in pure zig
2023-12-19 14:44:15 +01:00
Pierre Tachoire
5c8d3eba31
dom: implement elemnt.classList
...
and DOMTokenList
2023-12-13 10:40:09 +01:00
Pierre Tachoire
ad5c6236a7
dom: add NamedNodeMap implementation
...
and create Attr type
2023-12-05 08:53:34 +01:00
Pierre Tachoire
98c4f506b7
dom: implement element.*Attribute
2023-12-05 08:53:25 +01:00
Francis Bouvier
2065d47d8e
Check DOMError
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2023-11-28 17:55:49 +01:00
Pierre Tachoire
766c2ae47c
dom: add DOMImplementation
2023-11-27 17:54:57 +01:00
Francis Bouvier
57dcbe1ba9
Add DOMException
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2023-11-23 17:14:01 +01:00
Francis Bouvier
b4951ffa51
Adapt to js_env.start change
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2023-11-24 19:37:45 +01:00
Francis Bouvier
c751b5f420
Update jsruntime
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2023-11-21 12:16:51 +01:00
Pierre Tachoire
84934cca13
dom: add HTMLCollection unit tests
2023-11-15 16:09:06 +01:00
Francis Bouvier
3c5f1b89e7
Update jsruntime + fix breaking changes
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-23 13:03:39 +02:00
Pierre Tachoire
9dda08b8a9
dom: document: re-dispatch document function according to spec
2023-10-17 18:18:38 +02:00
Francis Bouvier
887dde5ee3
Merge pull request #57 from Browsercore/global_aliases
...
Alias global as self and window
2023-10-10 14:50:32 +02:00
Francis Bouvier
28b1bee241
Alias global as self and window
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-10 14:49:57 +02:00
Francis Bouvier
de8f586223
text: add wholeText getter
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 16:06:14 +02:00
Francis Bouvier
2d6f497946
Restart doc at each test suite
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-02 16:47:48 +02:00
Francis Bouvier
9c8d1082a3
characterdata: add data getter and setter
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-28 19:36:18 +02:00
Pierre Tachoire
ac8317adf4
netsurf: use parse helper
2023-10-04 18:29:35 +02:00
Pierre Tachoire
818d4f4af2
netsurf: update parseDocumentHtml breaking change
2023-10-04 18:28:01 +02:00
Pierre Tachoire
46f01e5286
netsurf: expose documentHTMLClose func
2023-10-04 18:21:35 +02:00
Pierre Tachoire
47b6d38ed3
netsurf: use idiomatic []const u8 for filename
2023-10-02 21:25:55 +02:00
Francis Bouvier
bca3195550
remove tests from main, fix tests and update jsruntime
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-28 15:40:22 +02:00
Francis Bouvier
fab03586a3
netsurf: move to public only API
...
And add some Node APIs:
- getters: firstChild, lastChild, nextSibling, previoussibling,
parentNode, parentElement, nodeName, nodeType, ownerDocument,
isConnected
- getters/setters: nodeValue, textContent
- methods: appendChild
And some test comptime optimizations on Document
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 11:58:05 +02:00
Francis Bouvier
766b7b4ed8
netsurf: first adaptations
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-20 23:04:16 +02:00
Francis Bouvier
740b1a0d9c
Update to jsruntime engine interface
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-08-29 20:20:57 +02:00
Francis Bouvier
e0eee45156
Applies changes from jsruntime Self and mem_guaranteed
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-06-02 16:54:57 +02:00
Francis Bouvier
98796d9512
Add generate Union function
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-05-15 18:48:35 +02:00
Francis Bouvier
50ac87ed6a
Implement HTMLDocument.createElement
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-03-16 18:22:46 +01:00
Francis Bouvier
081daa1245
Fix test call to jsruntime.loadEnv
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-03-01 11:47:06 +01:00
Francis Bouvier
497a1119f8
Initial commit
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-02-07 16:22:01 +01:00