Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add popup menu for select element | bptato | 2023-07-05 | 1 | -91/+150 |
| | | | | | | | Replaces the weird CSS implementation we have had until now with a searchable popup menu similar to that of w3m. (The previous implementation broke on websites that do not expect <select> to expand on click, had no separate search, and was ugly.) | ||||
* | Do not conditionally disable CastSizes | bptato | 2023-07-03 | 1 | -6/+1 |
| | | | | ...because that doesn't work at all. | ||||
* | Fix JS type conversion regressions | bptato | 2023-07-03 | 1 | -3/+6 |
| | |||||
* | Fix CastSize warnings | bptato | 2023-07-03 | 1 | -2/+4 |
| | | | | Introduced by 1.6.14. Warns of undefined behavior. | ||||
* | FormData fixes | bptato | 2023-07-02 | 1 | -1/+1 |
| | |||||
* | Add window.location | bptato | 2023-06-29 | 1 | -1/+5 |
| | | | | Note: setters do not work yet. | ||||
* | buffer: only load images if config allows it | bptato | 2023-06-25 | 1 | -1/+4 |
| | |||||
* | cookie: return error on invalid domain | bptato | 2023-06-25 | 1 | -2/+2 |
| | |||||
* | Improve broken cookie handling, add multipart to form | bptato | 2023-06-25 | 1 | -2/+2 |
| | | | | | | | | Now it's not as horribly broken as before (but it's still far from perfect). We can at least log in to sr.ht (hooray). The form multipart part is straightforward, just pass what we used to pass long ago before I broke multipart. | ||||
* | Do not allow text() twice, etc... | bptato | 2023-06-20 | 1 | -14/+17 |
| | |||||
* | Reject fetch promise on network error | bptato | 2023-06-19 | 1 | -12/+17 |
| | | | | Instead of setting the non-standard res variable. | ||||
* | Get rid of the .jserr pragma | bptato | 2023-06-19 | 1 | -11/+9 |
| | |||||
* | Rework JS exception system | bptato | 2023-06-19 | 1 | -13/+24 |
| | | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma. | ||||
* | Cleanups & bug fixes involving promises | bptato | 2023-06-15 | 1 | -6/+13 |
| | | | | | Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray. | ||||
* | Make Result.text, json return promise | bptato | 2023-06-13 | 1 | -4/+2 |
| | |||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 1 | -24/+46 |
| | |||||
* | Add support for visibility | bptato | 2023-06-07 | 1 | -18/+15 |
| | |||||
* | Add support for width, height media query | bptato | 2023-06-07 | 1 | -4/+6 |
| | |||||
* | Clean up stream error handling | bptato | 2023-06-07 | 1 | -6/+6 |
| | | | | | | * sread now raises EOFError if readData returns too few bytes * buffer handleError ignores unregistered fds like client * client handleError ignores unregistered fds like buffer | ||||
* | buffer: call handleError before handleRead & misc | bptato | 2023-06-05 | 1 | -6/+6 |
| | |||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 1 | -82/+28 |
| | | | | | | | | | | | | | | | Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...) | ||||
* | Add setTimeout, setInterval to window | bptato | 2023-06-01 | 1 | -49/+60 |
| | |||||
* | Refactor config, add charset opts | bptato | 2023-05-16 | 1 | -11/+12 |
| | | | | Only document-charset supported for now. | ||||
* | Set buffer state to LOADED on finishLoad | bptato | 2023-05-14 | 1 | -2/+2 |
| | |||||
* | Name negative response codes | bptato | 2023-05-14 | 1 | -2/+4 |
| | |||||
* | Async resource loading, exception handling fixes | bptato | 2023-05-14 | 1 | -18/+60 |
| | |||||
* | Fix some fetch crashes | bptato | 2023-05-11 | 1 | -0/+1 |
| | | | | Now it should work for very basic use-cases | ||||
* | Temporarily disable multipart | bptato | 2023-04-30 | 1 | -1/+1 |
| | | | | It never really worked, and I can't be bothered to fix it now | ||||
* | WIP fetch | bptato | 2023-04-30 | 1 | -0/+10 |
| | |||||
* | buffer: disable popup confirmation for forms | bptato | 2023-04-10 | 1 | -4/+13 |
| | |||||
* | buffer: adapt onload to PosixStream and SocketStream | bptato | 2023-02-13 | 1 | -15/+14 |
| | |||||
* | buffer: fix infinite loop in getClickable | bptato | 2023-01-03 | 1 | -2/+3 |
| | |||||
* | buffer: fix infinite loop | bptato | 2023-01-03 | 1 | -1/+2 |
| | |||||
* | dom: add better attribute reflection | bptato | 2023-01-02 | 1 | -2/+3 |
| | | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes. | ||||
* | Add support for <label> | bptato | 2023-01-02 | 1 | -93/+111 |
| | |||||
* | loader: proper redirect handling | bptato | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | buffer: fix some search bugs & refactor regex stuff | bptato | 2023-01-01 | 1 | -28/+26 |
| | | | | | | | | cursorBytes uses twidth now. cursorNextMatch matches the byte *after* the cursor (somewhat more consistently than before). match() no longer counts capture groups. LRE_FLAG_GLOBAL now goes through the entire string. | ||||
* | Add promise support to JS | bptato | 2022-12-31 | 1 | -79/+40 |
| | |||||
* | Consistent naming of parseURL, non-public newURLParams | bptato | 2022-12-26 | 1 | -4/+4 |
| | |||||
* | More DOM work | bptato | 2022-12-19 | 1 | -9/+1 |
| | |||||
* | Add JS support to documents | bptato | 2022-12-18 | 1 | -15/+21 |
| | |||||
* | Allow cycling through hover-texts with u | bptato | 2022-12-16 | 1 | -23/+30 |
| | |||||
* | container: do not load all lines at once in readLines | bptato | 2022-12-15 | 1 | -3/+9 |
| | |||||
* | makeCRLF: move to twtstr, write last char | bptato | 2022-12-15 | 1 | -16/+0 |
| | |||||
* | Fix error handling on buffer close | bptato | 2022-12-15 | 1 | -14/+18 |
| | |||||
* | Make load() slightly less dumb | bptato | 2022-12-15 | 1 | -51/+98 |
| | | | | | This gets rid of the inefficient timeout thing. Still, the ideal solution would be to move the timeout into the container; TODO. | ||||
* | cssparser: check for EOF in first read chunk | bptato | 2022-12-14 | 1 | -2/+2 |
| | | | | To-do: use decoderstream... | ||||
* | Add referer support, re-render on windowChange | bptato | 2022-12-13 | 1 | -1/+21 |
| | |||||
* | Fix stream error handling confusion, title display | bptato | 2022-12-13 | 1 | -9/+16 |
| | | | | Also probably other fixes. | ||||
* | Add all sorts of config options and cookies | bptato | 2022-12-13 | 1 | -1/+7 |
| |