about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Add mancha man page viewerbptato2024-01-2610-11/+434
| | | | | | | | | | derived from w3mman2html.cgi, there are only a few minor differences: * different man page opener command * use man:, man-k:, man-l: instead of query string to specify action * no form input (C-lC-uman:pageC-m is faster anyway) TODO rewrite in Nim so we don't have to depend on Perl...
* js: update pragma docsbptato2024-01-241-3/+9
|
* js: define toStringTag properlybptato2024-01-243-3/+13
|
* js: allow specifying static function name, small refactoringbptato2024-01-243-63/+62
| | | | | | | | * static function names can now be defined using the syntax `Class:functionName' (or just use `Class' to take the default name * fix URL.canParse with 1 argument only * do not store JSFuncGenerator for constructors; just put the function node in BoundFunctions
* Remove newFormatbptato2024-01-235-20/+16
| | | | Pointless; it just returned a default zero-initialized object.
* color: remove Premul typebptato2024-01-231-18/+10
|
* rendertext: add support for backspace overstrike, misc fixesbptato2024-01-232-47/+125
| | | | | * parse manpage output styled ugly backspace overstrike formatting * fix broken charset detection for large files
* md2manpreproc: fix non-portable behaviorbptato2024-01-221-6/+6
| | | | Turns out \? for BRE is not in POSIX. Accordingly, it fails on FreeBSD.
* doc: fix cookie sharing examplebptato2024-01-221-4/+4
| | | | This configuration scheme really is a nightmare to use :(
* container: fix b/e unnecessarily switching linesbptato2024-01-201-3/+8
| | | | | cursorWordEnd & cursorWordBegin must only change the current line if no new word was found.
* Fix form action when submitter has a "form" attrbptato2024-01-192-20/+30
| | | | | | | * Unify form variable for all form-associated elements * Fix broken form association logic in resetFormOwner * Use form action for all form-associated submitters * Remove unused getElementsByTag + de-extern some functions
* charwidth: use ptint in controls calculationbptato2024-01-192-19/+19
| | | | int was incorrect
* buffer: fix clone on *BSDbptato2024-01-191-1/+8
| | | | kqueue does not like being closed after fork(2).
* about:chawan: fix some descriptionsbptato2024-01-191-2/+2
|
* Re-design word handling, add e, E, W, B, etc.bptato2024-01-197-59/+266
| | | | | | | | | | | | * Add functions for moving to the beginning/end of words (vi `b', `e'). * As it turns out, there are many possible interpretations of what a word is. Now we have a function for each reasonable interpretation, and the default settings match those of vi (and w3m in w3m.toml). (Exception: it's still broken on line boundaries... TODO) * Remove `bounds` from lineedit, it was horrible API design and mostly useless. In the future, an API similar to what pager now has could be added. * Update docs, and fix some spacing issues with symbols in the tables.
* utils/map: remove unused special casebptato2024-01-171-3/+0
| | | | Even if it were used, it's UB...
* Remove std/terminal dependencybptato2024-01-174-55/+66
| | | | It is mostly unnecessary, and conflicts with our use of termcap anyway.
* js: small improvementsbptato2024-01-173-22/+54
| | | | | * turn JSFuncGenerator into a ref object (it's faster this way) * remove strformat dependency
* dom: fix innerHTML tag name regressionbptato2024-01-171-2/+8
|
* dom: fix invalid object conversion defectbptato2024-01-171-1/+1
|
* quickjs: patch libunicode.h to use LRE_BOOLbptato2024-01-151-2/+2
| | | | | | | This way it actually compiles :) (QJS includes cutils.h too, so BOOL works there. We don't, so this is the easiest fix.)
* dom: standard-compliant innerHTML/outerHTMLbptato2024-01-122-5/+73
| | | | | | | | It's still not perfect, but at least now we do not apply non-standard whitespace changes. The stringifier is left as it is since it's more useful for debugging this way.
* cha-http-libfetch: fix incorrect usage of strncatbptato2024-01-111-14/+3
| | | | | | | strncat does not work like that :P Luckily, BSD has strlcat which does. (While we're at it, remove the unused PDIE macro.)
* Use errDOMException template everywherebptato2024-01-115-24/+24
|
* native cosmopolitan buildFabrice Bellard2024-01-111-16/+5
|
* more portable and Windows version for getTimezoneOffset() (github issue #122)Fabrice Bellard2024-01-111-9/+24
|
* regexp: fixed the zero advance logic in quantifiers (github issue #158)Fabrice Bellard2024-01-112-74/+42
|
* optional chaining fixes (github issue #103)Fabrice Bellard2024-01-112-7/+111
|
* fixed Date.toLocaleString() (kuzmas)Fabrice Bellard2024-01-111-1/+1
|
* fixed regexp case insensitive flagFabrice Bellard2024-01-114-196/+374
|
* fixed next token parsing after a function definition (github issue #77)Fabrice Bellard2024-01-111-27/+51
|
* fixed class name init in static initializersFabrice Bellard2024-01-111-17/+10
|
* avoid potentially undefined behavior and make valgrind happy (bnoordhuis) ↵Fabrice Bellard2024-01-111-14/+12
| | | | (github issue #153)
* make for in faster and spec compliant (github issue #137)Fabrice Bellard2024-01-111-86/+143
|
* fixed test262: derived-this-uninitialized-realm.jsFabrice Bellard2024-01-112-4/+28
|
* added a comment for non-initialized warning in Valgrind (github issue #153)Fabrice Bellard2024-01-111-0/+10
|
* added 'in' operator for private fieldsFabrice Bellard2024-01-112-75/+162
|
* class static block (initial patch by bnoordhuis)Fabrice Bellard2024-01-111-17/+76
|
* fixed crash in JS_DumpMemoryUsage (github issue #65)Fabrice Bellard2024-01-111-2/+2
|
* allow 'await' in the REPL and added os.sleepAsync()Fabrice Bellard2024-01-112-2/+5
|
* make JS_NewClassID thread safeFabrice Bellard2024-01-111-1/+10
|
* added Error causeFabrice Bellard2024-01-112-6/+21
|
* js: merge some type modules into jstypesbptato2024-01-1116-51/+52
| | | | They only had type definitions, no need to put them in separate modules.
* pager: simplify updateReadLinebptato2024-01-111-14/+16
|
* Fix windowChange not refreshing valid media queriesbptato2024-01-103-1/+7
| | | | | | | | * css/cascade: copy stylesheet in applyMediaQuery (so that changes are reverted on re-style) * buffer: clear prevstyled in windowChange (to avoid using cached results from previous cascading passes); set window.attrs * pager: avoid windowChange if new attrs are identical to the old ones
* js: use Nim allocatorbptato2024-01-082-17/+49
|
* Add urlenc, urldec; fix a URL encoding bug; improve trans.cgibptato2024-01-088-26/+119
| | | | | | | | | | * Fix incorrect internal definition of the fragment percent-encode set * urlenc, urldec: these are simple utility programs mainly for use with shell local CGI scripts. (Sadly the printf + xargs solution is not portable.) * Pass libexec directory as an env var to local CGI scripts * Update trans.cgi to use urldec and add an example for combining it with selections
* Use std/* imports everywherebptato2024-01-0762-190/+189
|
* tojs: document + remove unused JSCFunction converterbptato2024-01-071-7/+41
|
* request: don't deny BodyInit that is not an objectbptato2024-01-061-3/+0
| | | | This breaks string conversions.