Commit Graph

2200 Commits

Author SHA1 Message Date
Pierre Tachoire
e1e4b13be9 dom: remove useless Exception decl 2023-12-05 09:15:54 +01:00
Pierre Tachoire
ad5c6236a7 dom: add NamedNodeMap implementation
and create Attr type
2023-12-05 08:53:34 +01:00
Pierre Tachoire
dcb095d9df dom: add element.HasAttributes 2023-12-05 08:53:34 +01:00
Pierre Tachoire
acf737152c dom: implement element.toggleAttribute 2023-12-05 08:53:34 +01:00
Pierre Tachoire
98c4f506b7 dom: implement element.*Attribute 2023-12-05 08:53:25 +01:00
Pierre Tachoire
ee8628acfd wpt: handle json outpout w/ safe run 2023-11-30 17:31:17 +01:00
Pierre Tachoire
73e80a5678 wpt: use enum for output 2023-11-30 17:31:17 +01:00
Pierre Tachoire
29f5f15c50 wpt: move safe run in its own func 2023-11-30 17:31:17 +01:00
Pierre Tachoire
07270fbb19 wpt: extract filter on its own func 2023-11-30 17:31:16 +01:00
Pierre Tachoire
8b8d7b3617 wpt: add safe test run in separate process 2023-11-30 17:31:16 +01:00
Pierre Tachoire
6e0491e3b0 wpt: remove output 2023-11-30 17:31:16 +01:00
Pierre Tachoire
62721e672f wpt: add json output 2023-11-30 17:31:15 +01:00
Pierre Tachoire
49318b18df wpt: use gpa allocator 2023-11-30 17:31:15 +01:00
Pierre Tachoire
d7ddec3ba7 wpt: move code into wpt/ module 2023-11-30 17:31:12 +01:00
Pierre Tachoire
486927c889 wpt: refacto results report 2023-11-30 17:26:08 +01:00
Pierre Tachoire
b55c72c2ed wpt: add json option 2023-11-30 17:26:07 +01:00
Francis Bouvier
a6a18cf0f5 Merge pull request #96 from Browsercore/dom_error
Check DOMError
2023-11-30 17:15:04 +01:00
Pierre Tachoire
fe86a36551 dom: fix defer free var in createDocument 2023-11-30 09:40:33 +01:00
Francis Bouvier
b53c160001 HTMLCollection: add unit test for liveness
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-29 17:35:37 +01:00
Francis Bouvier
ce913219a9 Add DOMError check in DOMImplementation
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-29 15:34:10 +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
a504daebe1 dom: use alloc short name 2023-11-27 17:55:02 +01:00
Pierre Tachoire
c4c6cfa044 better null check syntax
Co-authored-by: Francis Bouvier <francis@lightpanda.io>
2023-11-27 17:55:02 +01:00
Pierre Tachoire
8d6f18744e move unsued along with TODO
Co-authored-by: Francis Bouvier <francis@lightpanda.io>
2023-11-27 17:55:02 +01:00
Pierre Tachoire
0afa6b27b9 remove useless var
Co-authored-by: Francis Bouvier <francis@lightpanda.io>
2023-11-27 17:55:01 +01:00
Pierre Tachoire
bd68f07206 use _ name for unused self args
Co-authored-by: Francis Bouvier <francis@lightpanda.io>
2023-11-27 17:55:01 +01:00
Pierre Tachoire
443aef4f76 dom: add DOMImplementation.hasFeature 2023-11-27 17:55:00 +01:00
Pierre Tachoire
dde3f149d6 dom: add DOMImplementation.deinit 2023-11-27 17:55:00 +01:00
Pierre Tachoire
1c4edf7c95 dom: implement document constructor 2023-11-27 17:55:00 +01:00
Pierre Tachoire
7bd4729d3f dom: add document.implementation 2023-11-27 17:54:59 +01:00
Pierre Tachoire
766c2ae47c dom: add DOMImplementation 2023-11-27 17:54:57 +01:00
Francis Bouvier
0ba0ae5b4e dom_exception: adapt to interface definition change
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-27 16:44:26 +01:00
Francis Bouvier
86489f3635 dom_exception: add errors not handled by netsurf
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-27 16:20:31 +01:00
Francis Bouvier
372c93d0f5 DOMException: implements reviewer comments
Co-authored-by: Pierre Tachoire <pierre@lightpanda.io>
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-24 18:26:03 +01:00
Francis Bouvier
57dcbe1ba9 Add DOMException
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-23 17:14:01 +01:00
Pierre Tachoire
36005cd591 Merge pull request #86 from Browsercore/jsruntime_changes
Adapt to free js slices
2023-11-27 12:22:07 +01:00
Pierre Tachoire
ec06190327 dom: implement document.characterSet 2023-11-27 09:28:41 +01:00
Francis Bouvier
71866001db Adapt to free js slices
Relates to PR https://github.com/Browsercore/jsruntime-lib/issues/111

Relates to issue https://github.com/Browsercore/jsruntime-lib/pull/142

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
2023-11-26 23:49:21 +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
Pierre Tachoire
b64707766e dom: rename document.get_URL 2023-11-24 10:30:15 +01:00
Pierre Tachoire
bf297ac97d dom: document.documentURI and document.URL 2023-11-24 09:22:37 +01:00
Pierre Tachoire
0fadb4ff98 dom: document.contentType with hardcoded value 2023-11-24 09:22:37 +01:00
Pierre Tachoire
f1ea914303 dom: add document.compatMode with hardcoded value 2023-11-24 09:22:37 +01:00
Pierre Tachoire
4ae0c0c5af dom: add document.characterSet with hardcoded value 2023-11-24 09:22:35 +01:00
Pierre Tachoire
e4d1b1d921 dom: add document.documentElement getter 2023-11-24 09:21:07 +01:00
Francis Bouvier
f0483586a3 Merge pull request #75 from Browsercore/dom-documenttype
dom: add DocumentType
2023-11-23 14:33:25 +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
06ec9a16f5 dom: remove useless error union on document.getElementsBy* 2023-11-20 16:34:13 +01:00
Pierre Tachoire
a64d920f11 dom: add document.doctype getter 2023-11-20 15:26:58 +01:00
Pierre Tachoire
5ac6a286fc dom: add DocumentType 2023-11-20 15:26:23 +01:00