Pierre Tachoire
47e52b8217
dom: implement lwc_string
...
and unit tests for document.GetElementByClassName
2023-11-20 14:57:42 +01:00
Pierre Tachoire
dd28204797
dom: implement getElementsByClassName
2023-11-20 14:57:42 +01:00
Pierre Tachoire
4a15456418
dom: declare document.createElementsNS
2023-11-20 10:39:40 +01:00
Pierre Tachoire
18bfaf8b55
dom: create elementToNode helper
2023-11-17 15:11:00 +01:00
Pierre Tachoire
d8b1989e8e
netsurf: remove useless HTMLCollection wrapper
2023-11-16 17:32:22 +01:00
Pierre Tachoire
09d032f6f8
dom: implement HTMLCollection.namedItem()
2023-11-15 16:08:58 +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
9acb1890b4
netsurf: add elementGetAttribute func
2023-10-27 18:11:08 +02:00
Pierre Tachoire
091a7fec9a
netsurf: use the missing tags from libdom
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
Pierre Tachoire
0580a3ffd6
netsurf: remove useless documentBody
2023-10-18 16:35:30 +02:00
Pierre Tachoire
8f6016e0fd
netsurf: cs fix
2023-10-17 14:32:59 +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
6370b2d7a7
dom: add document.createElement and document.getElementById
2023-10-11 14:48:31 +02:00
Pierre Tachoire
b782a591f9
netsurf: add document.getElementsByName
2023-10-11 09:35:46 +02:00
Pierre Tachoire
b8205e7498
netsurf: add NodeList
2023-10-11 09:35:41 +02:00
Francis Bouvier
b05e08e6a8
text: add splitText method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 16:27:40 +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
6955285ed5
characterdata: add substringData method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 14:42:18 +02:00
Francis Bouvier
8438393aff
characterdata: add replaceData method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 14:37:45 +02:00
Francis Bouvier
7951498ab5
characterdata: add insertData method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 14:34:37 +02:00
Francis Bouvier
be716e591d
characterdata: add deleteData method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 14:29:37 +02:00
Francis Bouvier
7c1eca3b74
characterdata: add appendData method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-09 14:24:15 +02:00
Francis Bouvier
7406b6d06c
characterdata: add previouselementSibling getter
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-02 17:29:27 +02:00
Francis Bouvier
202ee1646d
characterdata: add nextElementSibling getter
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-10-02 17:25:32 +02:00
Francis Bouvier
51f1271496
characterdata: add length getter
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-28 19:48:42 +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
cf8725757c
netsurf: typo fix
2023-10-04 18:28:04 +02:00
Pierre Tachoire
8a1da4e0f2
netsurf: rename parser and create helpers
2023-10-04 18:28:04 +02:00
Pierre Tachoire
a8079ad60e
netsurf: refacot again to reuse wr_create_doc_dom_from_file
2023-10-04 18:28:04 +02:00
Pierre Tachoire
b7aecb72f4
netsurf: handle null terminated c string more correctly
2023-10-04 18:28:03 +02:00
Pierre Tachoire
818d4f4af2
netsurf: update parseDocumentHtml breaking change
2023-10-04 18:28:01 +02:00
Pierre Tachoire
cd53d2604c
netsurf: add a parser from string wrapper
2023-10-04 18:26:38 +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
4de6ad02f5
node: move arg check in API declaration for nodeLookupPrefix method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-29 13:42:39 +02:00
Francis Bouvier
09ddfd2a09
node: add lookupNamespaceURI method (NOT TESTED)
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-28 18:22:39 +02:00
Francis Bouvier
8c0279bd1b
node: add lookupPrefix method (NOT TESTED)
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-28 18:17:04 +02:00
Francis Bouvier
24dc25391e
node: add isSameNode method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-28 17:49:07 +02:00
Francis Bouvier
9b544db2a9
node: add normalize method (NO TEST)
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-27 14:55:36 +02:00
Francis Bouvier
2e3d1220f6
node: add replaceChild method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-27 11:13:53 +02:00
Francis Bouvier
08ded87e02
node: add removechild method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-27 11:08:37 +02:00
Francis Bouvier
012622fc5f
node: add isEqualNode method (TEST NOT WORKING)
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 21:41:09 +02:00
Francis Bouvier
a07d9829de
node: add isDefaultnamespace (TEST NOT WORKING)
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 21:34:46 +02:00
Francis Bouvier
f3a99af670
node: add insertBefore method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 21:20:54 +02:00
Francis Bouvier
1e352c48ac
node: add hasChildnodes method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 17:55:21 +02:00
Francis Bouvier
70a66a95da
node: add contains method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 17:32:13 +02:00
Francis Bouvier
7fc6f290e7
node: add cloneNode method
...
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com >
2023-09-26 16:23:11 +02:00