Pierre Tachoire
b0c6948848
dom: implement document.createAttributeNS
2023-12-07 17:42:15 +01:00
Pierre Tachoire
f0149b03e5
dom: implement document.createAttribute
2023-12-07 17:36:34 +01:00
Pierre Tachoire
82148da5f6
dom: implement document.adoptNode
2023-12-07 17:31:04 +01:00
Pierre Tachoire
3ec5cee98c
dom: implement document.importNode
2023-12-07 17:26:08 +01:00
Pierre Tachoire
d13da6ffab
dom: implement document.createProcessingInstruction
2023-12-07 16:54:17 +01:00
Pierre Tachoire
24ec5f554d
dom: implement document.createComment
2023-12-07 16:30:33 +01:00
Pierre Tachoire
94876d01f1
dom: add document.createCDATASection
2023-12-07 16:27:26 +01:00
Pierre Tachoire
894b6182cf
dom: implement document.createTextNode
2023-12-07 16:16:39 +01:00
Pierre Tachoire
101fad1e72
netsurf: move NamedNodeMap definition down
2023-12-06 16:24:09 +01:00
Pierre Tachoire
fce9c2451c
code style: netsurf: remove extra lines
2023-12-05 16:40:26 +01:00
Pierre Tachoire
512641aa35
netsurf: create alias NodeExternal
2023-12-05 15:08:14 +01:00
Pierre Tachoire
005c2fe6c8
netsurf: rename stringFrom/ToData into strFrom/ToData
2023-12-05 14:30:33 +01:00
Pierre Tachoire
1bcedead56
dom: implement document.createDocumentFragment
2023-12-05 14:21:00 +01:00
Pierre Tachoire
a3f07c894c
netsurf: one line null check
2023-12-05 09:44:47 +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
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