about summary refs log tree commit diff stats
path: root/src/html
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for width, height media querybptato2023-06-072-1/+5
|
* Refactor bitmap, add png color modesbptato2023-06-061-0/+2
| | | | | Now PNG encoding/decoding, painting, etc. are done in separate files. Plus we support all color modes except indexed color.
* Add support for canvas and multipartbptato2023-06-052-79/+495
| | | | | | | | | | | | | | | 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 some console functions to DOMbptato2023-06-011-0/+17
| | | | Mainly to avoid errors
* Add module loading to clientbptato2023-06-011-1/+1
| | | | Files only, for now.
* Add setTimeout, setInterval to windowbptato2023-06-012-16/+56
|
* Rewrite new Request bindingbptato2023-05-211-1/+4
| | | | | Still far from perfect, but now at least it has a bit more to do with what the standard mandates.
* Add display/output encodingbptato2023-05-191-33/+32
| | | | Some encodings are still missing
* Refactor config, add charset optsbptato2023-05-161-40/+60
| | | | Only document-charset supported for now.
* remove stray eprint, remove unused make*bptato2023-05-131-6/+0
|
* Merge branch 'wip_fetch'bptato2023-04-301-0/+6
|\
| * WIP fetchbptato2023-04-301-0/+6
| |
* | dom: fix one-off error in insertNodebptato2023-04-301-2/+1
|/ | | | This caused the last child node to not be copied.
* nim 1.6.12 supportbptato2023-04-161-1/+1
|
* htmlparser: add missing reprocess token for trbptato2023-04-081-0/+1
| | | | This makes tr work correctly without tbody.
* dom: store index among siblings for nodesbptato2023-03-102-58/+68
|
* dom: set document url in constructorbptato2023-03-081-1/+2
|
* dom: set childonly flags where neededbptato2023-02-141-6/+7
|
* html/dom: add Node.remove()bptato2023-02-131-1/+4
|
* css/cascade: remove scoped sheetsbptato2023-01-072-19/+26
| | | | ...in favor of handling all style elements like other browsers
* dom: fix object conversion bug in optionsbptato2023-01-051-1/+1
|
* client, pager, dom, ...: better error handlingbptato2023-01-042-8/+8
| | | | Now the browser shouldn't completely die when a buffer crashes.
* dom: add better attribute reflectionbptato2023-01-023-109/+230
| | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes.
* dom: support a few more getters/settersbptato2023-01-021-8/+47
|
* Add support for <label>bptato2023-01-021-1/+53
|
* dom: fix collection cachingbptato2022-12-271-37/+51
| | | | Use ids instead of pure pointers, so we can utilize the JS finalizer.
* Implement DOMTokenList, item functions for collectionsbptato2022-12-261-34/+125
|
* getElementsByClassName on Document and Elementbptato2022-12-261-3/+9
| | | | Instead of Node.
* Correct attribute functions, de-extern jserrbptato2022-12-262-76/+55
| | | | | | Instead of unnecessarily marking every jserr function as *, add the used pragma (so the C compiler can get rid of them later.) Also, use the correct definition of attribute namespace.
* dom: correct constructors, more create functionsbptato2022-12-262-46/+89
|
* DOM: implement many new methodsbptato2022-12-262-8/+124
|
* dom: add navigator objectbptato2022-12-262-2/+58
|
* dom: fix select default displaybptato2022-12-211-3/+15
|
* Add unicode normalization, etcbptato2022-12-191-2/+2
|
* More DOM workbptato2022-12-194-250/+548
|
* More work on DOM (incl. bugfixes)bptato2022-12-191-143/+129
|
* Add JS support to documentsbptato2022-12-183-67/+571
|
* htmltokenizer: fix after attribute value (quoted) bugbptato2022-12-161-1/+3
| | | | I forgot to change the last case when copy-pasting. Oops.
* git wtf momentbptato2022-12-151-11/+0
|
* Merge branch 'master' of ssh://192.168.0.230/~/x/chabptato2022-12-151-0/+11
|\
| * htmltokenizer: implement a small todobptato2022-12-152-7/+13
| |
* | htmltokenizer: implement a small todobptato2022-12-152-16/+21
|/
* htmltokenizer: fix newline handling with insufficient buffer lengthbptato2022-12-151-2/+6
|
* Fix decoder bugs, move decoder to encoding/bptato2022-12-102-6/+6
|
* Add support for the encoding standard, fix parseLegacyColorbptato2022-12-102-120/+233
| | | | Also, fix a bug in the
* htmlparser: fix bug where tokens wouldn't be reprocessed after close_cellbptato2022-12-071-0/+1
|
* Fix typobptato2022-11-301-1/+1
|
* Add textareabptato2022-11-283-79/+154
| | | | Editing is implemented using an external editor (like vi).
* Add support for <button>bptato2022-11-272-4/+28
|
* Fix adoption agency algorithm bugsbptato2022-11-271-5/+11
|