about summary refs log tree commit diff stats
path: root/src/html/catom.nim
Commit message (Collapse)AuthorAgeFilesLines
* dom: optimize element size, remove importc hack & dead codebptato2024-09-301-1/+1
| | | | | This switches CAtom to uint32; it seems better to use the same size on all platforms.
* dom: add forms, elements getter + misc fixesbptato2024-09-171-1/+8
| | | | | | | | | | | | * add document.forms * add form.elements * remove redundant jshasprop functions * use mpairs for attribute iteration (mpairs use pointers, but pairs copies) * fix remove() crash * fix remove() collection invalidation for children (if parent is not in the collection) * update monoucha
* Update monouchabptato2024-08-091-4/+5
|
* buffer, pager, config: add meta-refresh + misc fixesbptato2024-07-281-1/+3
| | | | | | | | | * buffer, pager, config: add meta-refresh value, which makes it possible to follow http-equiv=refresh META tags. * config: clean up redundant format mode parser * timeout: accept varargs for params to pass on to functions * pager: add "options" dict to JS gotoURL * twtstr: remove redundant startsWithNoCase
* buffer, dom, event: JS binding for dispatchEventbptato2024-07-221-2/+1
| | | | | | * move dispatchEvent to event, add a JS binding * only reshape if the document was actually invalidated after event dispatch/interval call/etc.
* html: event cleanup, XHR progressbptato2024-07-181-2/+40
|
* buffer: add autofocusbptato2024-06-081-0/+1
| | | | naturally, it's opt-in
* dom: remove unnecessary/unused propertiesbptato2024-04-221-1/+2
| | | | | | | | | | * remove some properties we no longer use * convert novalidate into a reflected attribute * fix satClassList * remove reference to root node in every Node The last one is an obvious win when considering how often rootNode is used vs the memory used by a pointless pointer on every single object.
* Update code stylebptato2024-04-171-8/+9
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* dom: add onclick attribute supportbptato2024-04-141-0/+1
| | | | | + better align attribute-based event handler behavior with other browsers
* buffer: form fixes & improvementsbptato2024-03-241-0/+2
| | | | | | | * fall back to text for unimplemented input types * add custom prompt to all text-like input types * show min/max for range * fix accidental override of repaint
* catom: at -> satbptato2024-03-211-64/+59
| | | | just for consistency
* catom: merge TagType with AttrTypebptato2024-03-041-23/+105
| | | | | it's inefficient and pointless to treat them differently, so just derive a new enum from TagType with a macro
* dom: enumize attribute namesbptato2024-02-081-15/+51
|
* Update chamebptato2024-02-071-0/+60
* Update chame to the latest version * Get rid of nodeType usage * Add atoms * Re-implement DOM attributes * document.write