3149 Commits

Author SHA1 Message Date
Pierre Tachoire
8c1d1e491c dom: refacto HTMLCollection next 2023-11-15 16:09:01 +01:00
Pierre Tachoire
1fe49adba2 dom: add comment about buffer with fixed length
The buffer is used for upper case string transformation.
2023-11-15 16:09:00 +01:00
Pierre Tachoire
09d032f6f8 dom: implement HTMLCollection.namedItem() 2023-11-15 16:08:58 +01:00
Pierre Tachoire
3a188c4568 dom: compare tagname in case insensitive way 2023-11-15 16:08:57 +01:00
Pierre Tachoire
062a1a4010 dom: implement HTMLCollection
We can't simply use the libdom dom_document_get_elements_by_tag_name
because it follows an old version of the specifications and returns a
NodeList.
Since
190700b7c1
the spec changed in favor of returning an HTMLCollection.

So I'm trying to re-implement the HTMLCollection in zig.
2023-11-15 16:08:55 +01:00
Pierre Tachoire
2e40837f0d dom: add HTMLCollection 2023-11-15 16:08:52 +01:00
Pierre Tachoire
a238eed065 upgrade jsruntime-lib 2023-11-15 15:01:04 +01:00
Francis Bouvier
6f2cc91eab Merge pull request #68 from Browsercore/ci
ci: add CI workflows for tests
2023-11-15 14:22:17 +01:00
Pierre Tachoire
9469f157ca ci: don't run CI for draft PRs 2023-11-15 13:53:54 +01:00
Francis Bouvier
2331223cad Merge pull request #69 from Browsercore/ci-deps
ci: create a docker image with browsercore deps
2023-11-15 11:59:23 +01:00
Pierre Tachoire
d06d09ddda ci: add path contraints for pull requests 2023-11-15 11:58:09 +01:00
Pierre Tachoire
13e11ae5ca ci: build-deps: fix branch name 2023-11-15 11:45:59 +01:00
Pierre Tachoire
a671f6fd8a ci: allow WPT to fail 2023-11-15 09:29:49 +01:00
Pierre Tachoire
9155024fa5 ci: add zig build release 2023-11-15 09:02:21 +01:00
Pierre Tachoire
2afbd0752c ci: use browsercore-zig docker image 2023-11-14 19:04:30 +01:00
Pierre Tachoire
d04e321b65 ci: create a docker image with browsercore deps 2023-11-14 15:40:52 +01:00
Pierre Tachoire
d6996889c2 ci: fetch git submodules recursively 2023-11-14 11:36:34 +01:00
Pierre Tachoire
c5170db0f6 ci: add CI workflows for tests 2023-11-14 11:36:33 +01:00
Pierre Tachoire
ad58e536ed makefile: remove useless var 2023-11-14 11:36:33 +01:00
Francis Bouvier
ab75644dc8 Update jsruntime
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-11-09 16:25:37 +01:00
Francis Bouvier
f8d8920ebb Merge pull request #67 from Browsercore/wpt-script
wpt: load script source files from HTML
2023-11-09 15:29:01 +01:00
Pierre Tachoire
bd0ade29d2 wpt: use fs.path.join 2023-10-27 19:06:51 +02:00
Pierre Tachoire
89431971ac wpt: load script soruce file dynamically 2023-10-27 19:00:26 +02:00
Pierre Tachoire
9acb1890b4 netsurf: add elementGetAttribute func 2023-10-27 18:11:08 +02: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
Francis Bouvier
17f4711baa Merge pull request #63 from Browsercore/wpt-readme
wpt: add README section
2023-10-20 16:03:30 +02:00
Francis Bouvier
e0a8881fb3 Merge pull request #61 from Browsercore/add-missing-tags
dom: add missing tags
2023-10-20 15:59:53 +02:00
Pierre Tachoire
2d834f76eb wpt: add README section 2023-10-20 14:25:28 +02:00
Pierre Tachoire
d15ad1e5d8 vendor: update netsurf/libdom@master 2023-10-19 15:17:18 +02:00
Pierre Tachoire
cff27ecbd2 document: remove constructor comparison from test
Now the tag's constructor can be HTMLElement, so previous basic test
is invalid.
2023-10-19 15:16:26 +02:00
Pierre Tachoire
091a7fec9a netsurf: use the missing tags from libdom 2023-10-19 15:14:19 +02:00
Pierre Tachoire
18b4c2c002 vendor: use libdom fork 2023-10-19 15:14:19 +02:00
Pierre Tachoire
24a4164f5e dom: add missing tags
according with https://wpt.live/dom/nodes/Node-cloneNode.html test
2023-10-19 15:14:16 +02:00
Francis Bouvier
7f9ee308bd Merge pull request #51 from Browsercore/wpt
WPT tests
2023-10-18 16:49:11 +02:00
Pierre Tachoire
0580a3ffd6 netsurf: remove useless documentBody 2023-10-18 16:35:30 +02:00
Pierre Tachoire
34d5f2800e document: re-dispatch tests between node document and html document 2023-10-18 14:11:31 +02:00
Pierre Tachoire
b8efce8f34 wpt: declare FilesMap type in FileLoader struct 2023-10-18 14:08:58 +02:00
Pierre Tachoire
0a3e2fe392 wpt: refacto js eval 2023-10-17 18:33:35 +02:00
Pierre Tachoire
3f40936b78 wpt: remove useless default 2023-10-17 18:19:17 +02:00
Pierre Tachoire
9dda08b8a9 dom: document: re-dispatch document function according to spec 2023-10-17 18:18:38 +02:00
Pierre Tachoire
8f6016e0fd netsurf: cs fix 2023-10-17 14:32:59 +02:00
Pierre Tachoire
2a4d2be7db dom/document: fix get_body 2023-10-17 14:30:11 +02:00
Pierre Tachoire
77ab43fbd4 netsurf: stick w/ pure c names 2023-10-17 14:11:20 +02:00
Pierre Tachoire
82bcf226c2 netsurf: remove useless var 2023-10-17 14:08:11 +02:00
Pierre Tachoire
ebb5afe914 wpt: remove useless alias 2023-10-17 11:49:53 +02:00
Pierre Tachoire
14cacc3635 wpt: remove Self = @This() useless usage 2023-10-17 11:48:30 +02:00
Pierre Tachoire
3b141d3216 wpt: rename new into init 2023-10-17 11:40:07 +02:00
Pierre Tachoire
aadc17292e wpt: improve hashmap creation readability 2023-10-17 11:39:00 +02:00
Pierre Tachoire
0d6c319f1b wpt: replace cbk_res with null 2023-10-17 11:24:35 +02:00
Francis Bouvier
619c5396a3 Merge pull request #62 from Browsercore/html_test_formatted
Format test.html for easier manipulation
2023-10-12 14:17:17 +02:00