Commit Graph

42 Commits

Author SHA1 Message Date
Pierre Tachoire
25a971c440 window: remove useless import 2024-02-15 14:06:49 +01:00
Pierre Tachoire
9050f2586b events: add EventTargetBase
EventTargetBase implements event target vtable for pure zig struct
2024-02-05 16:41:11 +01:00
Pierre Tachoire
9a050fe069 html: add missing applet, basefont and keygen tags 2024-01-22 11:08:46 +01:00
Pierre Tachoire
45504a50e7 html: add menu and menuitem 2024-01-19 17:44:28 +01:00
Pierre Tachoire
f7752675bc html: add strong tag 2024-01-19 17:42:43 +01:00
Pierre Tachoire
c2106b4b77 html: add em tag 2024-01-19 17:42:22 +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
40dac207f9 window: add event target prototype 2024-01-17 18:22:01 +01:00
Pierre Tachoire
2bbaa77891 window: document is null by default 2024-01-17 18:22:00 +01:00
Pierre Tachoire
c2ade9061b move window from nav to html 2024-01-17 18:21:52 +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
be1e55272a DocumentHTML: cast directly document to node 2024-01-09 14:13:52 +01:00
Pierre Tachoire
a25169c9e8 documentHTML: replace NotSupported with NotImplemented 2024-01-09 14:13:52 +01:00
Pierre Tachoire
c73ecb5e0d HTMLDocument: implement all getter 2024-01-09 14:13:51 +01:00
Pierre Tachoire
fce9e44407 HTMLDocument: add noop legacy functions 2024-01-09 14:13:51 +01:00
Pierre Tachoire
91d1f539d4 HTMLDocument: implements anchors 2024-01-09 14:13:51 +01:00
Pierre Tachoire
552bf4224c HTMLDocument: pseudo designMode 2024-01-09 14:13:50 +01:00
Pierre Tachoire
584b254c08 HTMLDocument: applets return empty collection 2024-01-09 14:13:50 +01:00
Pierre Tachoire
d07717cd10 HTMLDocument: add currentScript getter 2024-01-09 14:13:50 +01:00
Pierre Tachoire
8f18fda54f HTMLDocument: add head getter 2024-01-09 14:13:49 +01:00
Pierre Tachoire
9de23d76d2 HTMLDocument: add body setter 2024-01-09 14:13:49 +01:00
Pierre Tachoire
7a4de724e3 HTMLDocument: add images/scripts/forms/links/embed getters 2024-01-09 14:13:48 +01:00
Pierre Tachoire
6bc44cbe75 dom: add DocumentHTML getElementsByName 2024-01-09 14:13:48 +01:00
Pierre Tachoire
970d51e4b0 dom: DocumentHTML title 2024-01-09 14:13:46 +01:00
Pierre Tachoire
ea80e5e4a1 dom: DocumentHTML getters 2024-01-09 14:13:46 +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
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
34d5f2800e document: re-dispatch tests between node document and html document 2023-10-18 14:11:31 +02:00
Pierre Tachoire
9dda08b8a9 dom: document: re-dispatch document function according to spec 2023-10-17 18:18:38 +02:00
Francis Bouvier
3ad5233b18 Forgot to commit files on b8aa291e1e
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-10-10 16:49:09 +02:00
Francis Bouvier
b8aa291e1e Iterfaces generation refacto
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-10-09 17:31:42 +02:00
Francis Bouvier
fab03586a3 netsurf: move to public only API
And add some Node APIs:
- getters: firstChild, lastChild, nextSibling, previoussibling,
parentNode, parentElement, nodeName, nodeType, ownerDocument,
isConnected
- getters/setters: nodeValue, textContent
- methods: appendChild

And some test comptime optimizations on Document

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-26 11:58:05 +02:00
Francis Bouvier
b5b4659c87 backport some node_lexbor modifications
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-21 17:05:38 +02:00
Francis Bouvier
766b7b4ed8 netsurf: first adaptations
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-09-20 23:04:16 +02:00
Pierre Tachoire
e64ffa0c27 0.11: run zig fmt 2023-09-19 17:29:25 +02:00
Francis Bouvier
e0eee45156 Applies changes from jsruntime Self and mem_guaranteed
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-06-02 16:54:57 +02:00
Francis Bouvier
76c8d8594c Add generate function for Tuple
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-05-23 15:23:09 +02:00
Francis Bouvier
fdafd96003 Move HTMLElements to generated union
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-05-18 17:36:31 +02:00
Francis Bouvier
12b840b3d5 Add parser Tag
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-05-18 16:32:42 +02:00
Francis Bouvier
fe1ccd974e Use LXB_TAG to determine HTMLElement kind
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-04-19 12:57:54 +02:00
Francis Bouvier
50ac87ed6a Implement HTMLDocument.createElement
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
2023-03-16 18:22:46 +01:00