about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* dom: add Image constructorbptato2024-11-191-0/+10
|
* event: fix preventDefault with stopImmediatePropagationbptato2024-11-191-5/+4
| | | | canceled was not being set, because we jumped out of the loop too early.
* container: add numLines getterbptato2024-11-191-1/+1
|
* layout: fix intrinsic min width with whitespace: prebptato2024-11-193-0/+12
|
* layout: fix indefinitely sized flex items with boundsbptato2024-11-193-1/+15
| | | | maybe I'll get it right one of these days
* dom: add HTMLHyperlinkElementUtils settersbptato2024-11-193-30/+94
|
* Update monoucha, fix some JS testsbptato2024-11-1810-73/+86
|
* network.chasc: allow gettimeofday toobptato2024-11-181-0/+3
| | | | continuation of 79d832c37
* ua.css, event: small clean upbptato2024-11-182-5/+4
|
* ua.css: set fieldset to flow-rootbptato2024-11-181-0/+4
| | | | | The HTML standard wants us to treat it specially, but for now this seems to work OK too.
* network.chasc: allow clock_gettimebptato2024-11-171-0/+6
| | | | | | | ref. https://todo.sr.ht/~bptato/chawan/23 TODO: I'm not quite sure *why* it's getting called. curls operate in mysterious ways.
* dynstream: check lseek return codebptato2024-11-171-0/+1
| | | | just in case
* layout: fix crash on overlapping rowspan/colspanbptato2024-11-173-2/+26
| | | | | The rowspan filler must get a smaller colspan if its first cells are occupied by another cell with a colspan > 1.
* gemini: set host name extension, refactorbptato2024-11-172-39/+33
| | | | gmifetch did this, but apparently it got lost in the rewrite.
* buffer: fix hover text not showing up with pseudo elementsbptato2024-11-172-78/+66
| | | | | | | | | | | | | | | | | | This was a bit annoying because it triggered the popup warning on cursorNextLink -> click with form buttons (as the square brackets around [button] are implemented with ::before/::after.) Notably, this also removes the visibility check from isClickable. I suspect there was a good reason why I added it, but I can't remember why, and it's incompatible with what desktop browsers do on: <a href="https://asdf.com" style="visibility: hidden"> <div style="visibility: visible"> test </div> </div> So if it's ever added back, then this case should be respected too.
* buffer: clean up findPrevLink, findNextLinkbptato2024-11-171-82/+57
| | | | | findPrevLink is still an unreadable mess, but at least findNextLink looks alright now.
* select: add cursorPrevLink, cursorNextLinkbptato2024-11-171-0/+6
|
* Update docsbptato2024-11-171-1/+1
|
* container: do not share cached images on clonebptato2024-11-161-0/+1
| | | | this was causing images to disappear sometimes
* dom: add getElementsByName, fix adoptbptato2024-11-162-1/+12
|
* Update monouchabptato2024-11-162-6/+6
|
* url: improve special scheme detectionbptato2024-11-161-62/+69
| | | | | * get rid of hash table * only do a single port lookup every time the port changes
* dom: run insertion steps for descendants on insertionbptato2024-11-151-10/+21
| | | | | | | | | wait isn't this exponential -- apparently not, at least not with the DOM builder. (however it is if JS builds the DOM out of place. what can you do, at least it works now.)
* gopher: fix queries with spacesbptato2024-11-151-1/+2
|
* url: fix serializeFormURLEncoded, refactorbptato2024-11-152-31/+22
| | | | kill qmark hack, plus refactor the form data parser/serializer
* color: clean up dead codebptato2024-11-151-16/+4
|
* twtstr: beforeLast -> untilLastbptato2024-11-155-6/+6
| | | | for consistency
* formdata: eliminate a global varbptato2024-11-158-31/+36
|
* js: reorganize modules, update docsbptato2024-11-1522-70/+69
| | | | | | | most of it has already been moved to monoucha, and the rest fits better in other directories. also, move urimethodmap to config
* Update docsbptato2024-11-141-189/+202
|
* cssvalues: reduce CSSComputedValue sizebptato2024-11-145-91/+102
| | | | | | | far from perfect, but it's something. (ideally, we should store enums in a bitmap instead of allocating a GC'ed property for each of them.)
* layout: fix another flex sizing bugbptato2024-11-143-1/+20
|
* buffer: skip unnecessary reshape in some casesbptato2024-11-141-25/+26
|
* layout: remove inline paddingbptato2024-11-131-24/+5
| | | | like line height, this caused more trouble than it was worth
* chapath: fix a few more bugs, simplifybptato2024-11-134-74/+44
| | | | | | | | | * fix incorrect :- behavior * merge non-standard '${%VARIABLE}' syntax with regular syntax; now all internal variables are exported to the environment, so the behavior should be equivalent. * handle terminal symbol appropriately in all states * deny numeric curly substitutions
* res: remove unicode tablesbptato2024-11-134-11896/+13
| | | | | mainly to avoid licensing issues and to skip an unnecessary build step when the git repo is cloned
* config: resolve download-dir as path, update docsbptato2024-11-1310-34/+80
| | | | | | | Turns out it's more useful to have env vars in the variable than to allow incomplete path names. Also, fix the disappearing backslash issue in docs.
* config.toml: respect TMPDIRbptato2024-11-124-10/+17
| | | | | also, fix a bug in the chapath parser so that param expansion actually works
* gopher: url decode path & query before submissionbptato2024-11-121-1/+3
|
* container: fix `U' cursor repositioning (really)bptato2024-11-122-25/+16
| | | | I swear this feature is cursed
* Remove useless filebptato2024-11-121-1/+0
|
* buffer: fix broken gotoAnchor behaviorbptato2024-11-125-90/+123
| | | | | | | | | | | | | | | | | 23beebe6 introduced a regression that broke gotoAnchor. This fixes that, plus a couple other long-standing gotoAnchor bugs: * If no anchor is found, do not dupe the buffer. Desktop browsers still add a history entry, while w3m prints an error. I've copied the latter because it makes more sense as a user, but this will have to be refined for the navigation API at some point. * If the anchor *is* found, then always jump to it, even if it's not visible. This was a limitation of relying on the line array, so now we rely on the box tree instead. (Sooner or later, the former must go anyway.) Also, fix `U' reload not restoring the position (hopefully this time for good).
* client: do not reopen istream if stdin is a ttybptato2024-11-121-6/+5
|
* url: reduce URL object size, simplifybptato2024-11-118-292/+212
| | | | | | | * query, fragment are now strings, not options * get rid of Host, Path types, now hostname/pathname are strings * fix ipv4 parsing error case * in file protocol, fix URL for dirlist without slash with a redirection
* client: run actions for mouse clicksbptato2024-11-101-12/+16
| | | | | stopgap measure until I think of a more flexible mouse configuration method
* dom: add replaceChild, requestAnimationFramebptato2024-11-104-7/+17
|
* cascade: adjust prefers-color-scheme based on terminal backgroundbptato2024-11-104-1/+10
| | | | also, default link color is now blue for light terminal backgrounds
* layout -> cssbptato2024-11-109-12/+12
| | | | as much as I wish it weren't, layout *is* css.
* dom: misc fixes & additionsbptato2024-11-092-0/+28
| | | | | | | | * fix cloneNode not cloning id/name atoms * fix HTMLOptionsCollection named item getter * fix HTMLCollection named item getter not refreshing snapshot * support named item getter for form * add basic createEvent
* dom: skip alternate stylesheets, add disabledbptato2024-11-092-6/+14
| | | | seems to work ok