Pierre Tachoire
aefab86501
nodelist: implement iterators
2024-09-25 09:37:14 +02:00
Pierre Tachoire
720d3f4df9
test: fix comptime var
2024-06-18 16:13:28 +02:00
Pierre Tachoire
f2a406d224
move netsurf and mimalloc into modules
2024-06-18 16:13:27 +02:00
Pierre Tachoire
c2e64c131a
userctx: document is not opational anymore
2024-05-22 14:56:41 +02:00
Pierre Tachoire
840aea9013
dom: fix document creation process
2024-05-22 14:56:41 +02:00
Pierre Tachoire
b7f589ee1a
dom: fix document constructor
2024-05-22 14:45:39 +02:00
Pierre Tachoire
2a3a243d1c
add AGPL license header in zig files
2024-05-13 20:51:36 +02:00
Pierre Tachoire
49e3d569de
dom: fix processing instruction clone
2024-04-05 16:34:22 +02:00
Pierre Tachoire
4d5f6d42fa
dom: use the css matcher for DOM
2024-03-26 10:25:50 +01:00
Francis Bouvier
501b3caa8e
Add legacy document.createEvent and event.initEvent
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2024-01-29 09:04:03 +01:00
Pierre Tachoire
d8df27ead7
dom: refacto append/prepend/replaceChild in Node
2024-01-18 09:59:26 +01:00
Pierre Tachoire
b33fc68898
dom: add doc.prepend/append
2024-01-18 09:53:21 +01:00
Pierre Tachoire
c0643398d7
dom: declare document prepend/append/replaceChildren
2024-01-18 09:53:20 +01:00
Pierre Tachoire
a2e266514f
dom: extract walker from html_collection to its own file
2024-01-17 18:25:05 +01:00
Pierre Tachoire
c1b4026fa3
Merge pull request #144 from lightpanda-io/html-doc
...
dom: DocumentHTML getters
2024-01-10 17:33:43 +01:00
Francis Bouvier
a5dfa6cb44
Adopt global Types changes in jsruntime
...
Signed-off-by: Francis Bouvier <francis@lightpanda.io >
2024-01-10 11:56:53 +01:00
Pierre Tachoire
ca6bb577c6
Document: use document cast to node
2024-01-09 14:24:55 +01:00
Pierre Tachoire
874677fa81
Update src/dom/document.zig
...
Co-authored-by: Francis Bouvier <francis@lightpanda.io >
2023-12-19 14:57:26 +01:00
Pierre Tachoire
9f6253b21d
nodelist: return struct instead of pointer
2023-12-19 14:53:45 +01:00
Pierre Tachoire
3ea95982d6
dom: nodelist: use unmanaged arraylist
2023-12-19 14:47:11 +01:00
Pierre Tachoire
d7f8014d53
dom: add basic document queryselector
2023-12-19 14:47:10 +01:00
Pierre Tachoire
c732b7496c
dom: implement document parentNode accessors
2023-12-13 13:17:45 +01:00
Pierre Tachoire
82c836c80d
dom: document first element can be null
2023-12-13 13:12:01 +01:00
Pierre Tachoire
6f91537354
dom: add document.children
2023-12-13 11:10:48 +01:00
Pierre Tachoire
6566df6338
dom: refacto html collection to handle root or descendant only
...
HTMLCollection works on two different way:
* by default it must walk over root's descendants only
* on document, since the given root must be included in the walk.
2023-12-13 11:10:44 +01:00
Pierre Tachoire
9c7194e98d
dom: use nodeName instead of string representation
...
for document unit test
2023-12-08 15:06:47 +01:00
Pierre Tachoire
67b354abed
dom: fix adoptNode and importNode return
2023-12-07 18:53:06 +01:00
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
9b9d927f38
dom: implement ProcessingIntruction.target
2023-12-07 17:02:14 +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
1bcedead56
dom: implement document.createDocumentFragment
2023-12-05 14:21:00 +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
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
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
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