Pierre Tachoire
82c836c80d
dom: document first element can be null
2023-12-13 13:12:01 +01:00
Pierre Tachoire
fb2ba6700e
dom: add element children and getelementsby*
2023-12-13 11:10:48 +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
2b298708ba
Merge pull request #119 from lightpanda-io/dom-element
...
dom: implement some element getters
2023-12-13 10:46:15 +01:00
Pierre Tachoire
dde13c42cf
dom: use DOMError.InvalidCharacter
2023-12-13 10:40:09 +01:00
Pierre Tachoire
5c8d3eba31
dom: implement elemnt.classList
...
and DOMTokenList
2023-12-13 10:40:09 +01:00
Pierre Tachoire
bd6f3faf9a
dom: implement element.slot
2023-12-13 10:40:09 +01:00
Pierre Tachoire
3d5155bf2b
dom: implement element.className
2023-12-13 10:40:08 +01:00
Pierre Tachoire
99caa1c495
dom: implement element.id
2023-12-13 10:40:08 +01:00
Pierre Tachoire
4f5a9f6833
dom: implement some element getters
2023-12-13 10:40:08 +01:00
Pierre Tachoire
4d5672330b
dom: remove processing instruction prototype
...
instead of CDATA.
2023-12-13 10:38:00 +01:00
Pierre Tachoire
e7264ebde7
wpt: pass allocator intreado of arena to Env.init
2023-12-13 09:29:29 +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
9ef61b424e
dom: create a Text.Interface union
2023-12-08 14:59:13 +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
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
165f7a9ff3
use const for unmutated var
2023-12-05 14:09:25 +01:00
Pierre Tachoire
7e7e5518d8
revert IterableDir
...
see https://github.com/ziglang/zig/pull/18076
2023-12-05 14:09:25 +01:00
Pierre Tachoire
d73a204d8b
@errSetCast is now @errorCast
...
see https://github.com/ziglang/zig/issues/17343
2023-12-05 14:09:24 +01:00
Pierre Tachoire
a3f07c894c
netsurf: one line null check
2023-12-05 09:44:47 +01:00
Pierre Tachoire
e1e4b13be9
dom: remove useless Exception decl
2023-12-05 09:15:54 +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
acf737152c
dom: implement element.toggleAttribute
2023-12-05 08:53:34 +01:00
Pierre Tachoire
98c4f506b7
dom: implement element.*Attribute
2023-12-05 08:53:25 +01:00
Pierre Tachoire
ee8628acfd
wpt: handle json outpout w/ safe run
2023-11-30 17:31:17 +01:00
Pierre Tachoire
73e80a5678
wpt: use enum for output
2023-11-30 17:31:17 +01:00
Pierre Tachoire
29f5f15c50
wpt: move safe run in its own func
2023-11-30 17:31:17 +01:00
Pierre Tachoire
07270fbb19
wpt: extract filter on its own func
2023-11-30 17:31:16 +01:00
Pierre Tachoire
8b8d7b3617
wpt: add safe test run in separate process
2023-11-30 17:31:16 +01:00
Pierre Tachoire
6e0491e3b0
wpt: remove output
2023-11-30 17:31:16 +01:00
Pierre Tachoire
62721e672f
wpt: add json output
2023-11-30 17:31:15 +01:00
Pierre Tachoire
49318b18df
wpt: use gpa allocator
2023-11-30 17:31:15 +01:00
Pierre Tachoire
d7ddec3ba7
wpt: move code into wpt/ module
2023-11-30 17:31:12 +01:00
Pierre Tachoire
486927c889
wpt: refacto results report
2023-11-30 17:26:08 +01:00
Pierre Tachoire
b55c72c2ed
wpt: add json option
2023-11-30 17:26:07 +01:00