1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Commit Graph

350 Commits

Author SHA1 Message Date
Witold Filipczyk
c52510fd9f [nodelist2] Free nodelist after generating values. 2024-07-23 19:01:50 +02:00
Witold Filipczyk
e7f2d6d908 [tests] 5 seconds was too little 2024-07-16 16:22:34 +02:00
Witold Filipczyk
132c72c123 [test] Rewritten test for fetch to free Promise 2024-07-08 21:32:38 +02:00
Witold Filipczyk
53da0cf2f6 [test] element.href.html 2024-07-07 14:43:38 +02:00
Witold Filipczyk
e8523fc1bf [test] element.remove 2024-07-06 12:22:28 +02:00
Witold Filipczyk
4cb9d10cb1 [test] Added domparser.html 2024-07-06 11:09:01 +02:00
Witold Filipczyk
31e4eb240a [spidermonkey] polyfilled fetch
fetch.js code from https://github.com/JakeChampion/fetch
modified to pass test assertion.
Module import in spidermonkey based on examples.
2024-07-03 20:25:11 +02:00
Witold Filipczyk
8d7ec1a81c [ecmascript] Added camel_to_html function
This function converts text from camelCase to dash-style
and prepends "data-" to string.
2024-06-29 09:42:48 +02:00
Witold Filipczyk
795159f9bb [test] Added removeAttribute case to getAttribute test. 2024-06-28 17:08:38 +02:00
Witold Filipczyk
fe5d5bcf68 [spidermonkey] element.dataset (slow) 2024-06-28 16:42:11 +02:00
Witold Filipczyk
a7bf39e9a6 [test] test case for element.dataset 2024-06-28 14:14:24 +02:00
Witold Filipczyk
7b3a5ea87b [spidermonkey] element.classList 2024-06-27 16:31:27 +02:00
Witold Filipczyk
851c9c6f61 [spidermonkey] document.getElementsByClassName
Memory leaks will be addressed later.
2024-06-25 17:38:24 +02:00
Witold Filipczyk
89dde0e0b6 [spidermonkey] own implementation of nodeList for querySelectorAll 2024-06-24 17:11:03 +02:00
Witold Filipczyk
ca4e1451ca [quickjs] element.contains(element) is true 2024-06-22 21:25:33 +02:00
Witold Filipczyk
86234795fb [ecmascript] reset_document before rewrite 2024-06-22 12:29:07 +02:00
Witold Filipczyk
2bf349a013 [quickjs] textContent 2024-06-19 16:48:36 +02:00
Witold Filipczyk
36571c79b3 [spidermonkey] check for empty string 2024-06-14 21:28:36 +02:00
Witold Filipczyk
42a5152cc4 [quickjs] URLSearchParams 2024-06-14 21:24:14 +02:00
Witold Filipczyk
a1a621ba64 [test] Added URLSearchParams.html 2024-06-12 19:36:10 +02:00
Witold Filipczyk
6e2e6b0976 [test] Test case for URLSearchParams 2024-06-12 14:25:24 +02:00
Witold Filipczyk
06e334ebd0 [test] window.setTimeout 2024-06-09 18:53:28 +02:00
Witold Filipczyk
a4a8171d2a [spidermonkey] document.readyState 2024-06-06 21:30:06 +02:00
Witold Filipczyk
13bf5abfcb [spidermonkey] document.getElementsByName not implemented 2024-06-04 17:15:01 +02:00
Witold Filipczyk
dfa2d3f60c [spdermonkey] document.getElementByClassName not implemented 2024-06-04 17:05:43 +02:00
Witold Filipczyk
240ce8a91d [test] event fails 2024-06-03 16:18:25 +02:00
Witold Filipczyk
43ed65b42e [test] There was hardcoded private dir 2024-06-03 16:08:26 +02:00
Witold Filipczyk
06790918b0 [test] Fix ecmascript tests 2024-06-02 10:13:35 +02:00
Witold Filipczyk
29138d737a [meson] Added ecmascript tests
It does not work. Tests always succeed, but some should fail.
2024-06-01 21:24:56 +02:00
Witold Filipczyk
05f97fa385 [assertions] console.exit() has no params 2024-06-01 13:30:03 +02:00
Witold Filipczyk
5c3ab7781d [mujs] document.addEventListener fixes and sample html file 2024-05-29 16:37:14 +02:00
Witold Filipczyk
912f1f2fe5 [quickjs] element.dispatchEvent 2024-05-26 17:27:50 +02:00
Witold Filipczyk
ded0717a64 [spidermonkey] element.dispatchEvent 2024-05-26 16:30:57 +02:00
Witold Filipczyk
fadf4f48a9 [spidermonkey] dispatchEvent
event_handler is called twice, but better than none.
2024-05-24 18:23:25 +02:00
Witold Filipczyk
67deceb07a [ecmascript] Added event.target getters
It does not work, it is a bug in libdom (unintialised value).
2024-05-23 16:23:47 +02:00
Witold Filipczyk
8b1fa5e1ff [mujs] Code related to document "similar" to quickjs and spidermonkey
Also added prototypes for endsWith and startsWith.
2024-05-19 21:08:35 +02:00
Witold Filipczyk
8a2e85b73f [dom] keyCodes like in Firefox
KeyboardEvent.keyCode returns 0 in Firefox for test case.
I won't change the test, because elinks relies on libdom API.
2024-05-12 16:51:04 +02:00
Witold Filipczyk
20ab63c1d1 [spidermonkey] KeyboardEvent.keyCode (Enter only)
Only Enter is handled. Strings are not "finalized".
2024-05-12 13:17:15 +02:00
Witold Filipczyk
348bc937c0 [spidermonkey] KeyboardEvent (libdom)
It passes test, but there is a regression.
It will be addressed later.
2024-05-11 13:04:36 +02:00
Witold Filipczyk
fec5bd561d [quickjs] CustomEvent (libdom) 2024-05-09 20:50:01 +02:00
Witold Filipczyk
b67d41bd82 [assert] customEvent.html 2024-05-09 18:35:32 +02:00
Witold Filipczyk
6b98a79c1f [assert] event.html 2024-05-09 15:13:30 +02:00
Witold Filipczyk
16cbdc2501 [mujs] element.outerHTML setter 2024-05-08 18:57:11 +02:00
Witold Filipczyk
46a213ae49 [spidermonkey] element.outerHTML 2024-05-08 18:32:59 +02:00
Witold Filipczyk
b3b6f66c51 [assert] test case for outerHTML 2024-05-08 16:14:43 +02:00
Witold Filipczyk
e11b52b496 [assert] lowercase in some assertions for outerHTML and innerHTML 2024-05-08 15:57:56 +02:00
Witold Filipczyk
a9ae51ae9f [mujs] nodelist.forEach passes test case 2024-05-07 19:33:34 +02:00
Witold Filipczyk
786469da5f [quickjs] nodelist.forEach 2024-05-07 17:24:13 +02:00
Witold Filipczyk
786cbf9500 [mujs] element.matches 2024-05-07 16:36:02 +02:00
Witold Filipczyk
3c81545b81 [quickjs] element.closest 2024-05-06 21:22:16 +02:00