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
98c4f506b7
dom: implement element.*Attribute
2023-12-05 08:53:25 +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
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
766c2ae47c
dom: add DOMImplementation
2023-11-27 17:54:57 +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
ec06190327
dom: implement document.characterSet
2023-11-27 09:28:41 +01:00
Pierre Tachoire
bf297ac97d
dom: document.documentURI and document.URL
2023-11-24 09:22:37 +01:00
Francis Bouvier
f0483586a3
Merge pull request #75 from Browsercore/dom-documenttype
...
dom: add DocumentType
2023-11-23 14:33:25 +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
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