about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Add mailcap, mime.types & misc refactoringsbptato2023-08-1330-378/+1431
| | | | | | | | * add mailcap: works with copiousoutput, needsterminal, etc. * add mime.types (only works with mailcap) * refactor pipeBuffer * remove "dispatcher" * fix bug in directory display where baseurl would not be used
* ua.css: add parens to rt before and afterbptato2023-08-101-0/+8
| | | | | Forgot to add any replacement for rp after setting it to display: none, so parentheses around ruby text were not being displayed.
* Makefile: add ./ to rm -rfbptato2023-08-101-1/+1
| | | | just to be sure
* css: implement case insensitivitybptato2023-08-103-135/+142
| | | | For some reason I forgot about this.
* Makefile: fix conflicts with directoriesbptato2023-08-101-8/+8
|
* serialize: add missing prepareMutationbptato2023-08-011-0/+1
|
* Update version information in READMEbptato2023-08-011-2/+2
|
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-0113-36/+257
| | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.)
* Fix double line bug in dump modebptato2023-07-292-3/+4
|
* Add default background/foreground color overridebptato2023-07-296-39/+82
|
* css: very minor optimizationsbptato2023-07-282-19/+15
| | | | probably insignificant overall
* Update makefilebptato2023-07-281-4/+8
| | | | small re-organization
* mediaquery: fix some missing has checks in parserbptato2023-07-281-0/+2
|
* layout: count spacing before inline padding toobptato2023-07-281-2/+10
|
* Fix twtstr.cmpbptato2023-07-281-2/+2
| | | | We were comparing the wrong sides of ranges here.
* htmlparser: replace stray insert callbptato2023-07-271-1/+1
|
* dom: fix hasChildbptato2023-07-271-1/+1
| | | | Return true instead of false when a node with nodeType was found.
* layout: remove incorrect commentbptato2023-07-271-2/+0
|
* htmlparser: fix <th> not closing table cellsbptato2023-07-271-1/+1
| | | | | <th> should close table cells, but was missing from the table cell closing list for some reason.
* layout: distinguish padding from spacingbptato2023-07-272-5/+23
| | | | | Re-consideration of 1e0506adb: we do need to explicitly specify padding after all, so the rendering engine knows of it too.
* layout: fix incorrect parenthesesbptato2023-07-271-1/+1
| | | | | | In the tab width case, only whitespacenum was being divided instead of charwidth + whitespacenum, which resulted in an exponential growth of both charwidth and whitespacenum.
* layout: do not treat inline padding as spacingbptato2023-07-271-5/+6
| | | | | So e.g. padding: 1px does not inhibit automatic addition of spaces for inline blocks.
* htmlparser: remove stray nil comparisonbptato2023-07-271-4/+3
|
* layout: remove unused variablesbptato2023-07-271-3/+0
|
* htmlparser: remove nil comparisons for Handlebptato2023-07-272-41/+52
| | | | This makes it possible to use non-reference types as Handle.
* layout: refactor absolute positioning width calcbptato2023-07-271-13/+84
| | | | Still not perfect, but at least not completely broken.
* doc: add missing end tagbptato2023-07-261-1/+1
|
* Add suspend() function (bound to C-z)bptato2023-07-263-2/+26
|
* layout: fix superfluous inline whitespacebptato2023-07-251-1/+3
| | | | | | | | | | | | | | computeShift now checks if the last inline atom is spacing, and if yes, it does not add more spacing. This fixes rendering of the following document: <span> a </span> <span> b </span>
* layout: use nowrap functionbptato2023-07-251-1/+1
|
* css: handle unknown tag names correctlybptato2023-07-253-5/+16
| | | | | | Instead of grouping all of them into TAG_UNKNOWN, match their tag names. To-do: this implementation is not very efficient.
* html: include SEARCH tag in parserbptato2023-07-252-5/+7
|
* html: add SEARCH tagbptato2023-07-251-17/+17
|
* layout: fix position: relative sizesbptato2023-07-251-2/+2
| | | | | Only inherit width from the last positioned element if position: absolute is set.
* Add compileMatchRegexbptato2023-07-253-12/+73
| | | | | | | This makes it so that host = 'example\.org' mandates an exact match, but host = '^example' matches example.org, example.com, etc. (Previously, 'example\.org' would have matched exampleexample.org as well, which was quite counter-intuitive.)
* ua.css: add more block elementsbptato2023-07-251-2/+4
| | | | Additions sourced from the HTML standard.
* layout: refactor sizingbptato2023-07-252-281/+425
| | | | | | Factor out the "shrink" variable and the (broken) isWidthSpecified into a SizeConstraint type. This should make box sizing easier to reason about.
* mediaquery: better debugging functionsbptato2023-07-231-3/+35
|
* css: fix percentage min/max-width valuesbptato2023-07-231-1/+1
|
* Fix compilation on nim 1.6.10bptato2023-07-171-2/+3
| | | | It appears there is a compiler bug we have to work around there.
* htmlparser: fix regressionbptato2023-07-171-2/+2
| | | | Fixed unintended variable shadowing introduced during refactoring
* Include libunicode header in bindingbptato2023-07-151-0/+5
|
* htmlparser: make getTemplateContent optionalbptato2023-07-151-3/+4
|
* htmlparser: check required callbacksbptato2023-07-151-0/+13
|
* htmlparser: add parse error handlingbptato2023-07-154-281/+437
|
* htmlparser: correct outdated commentbptato2023-07-141-9/+3
|
* decoderstream: refactoring + iso2022jp fixesbptato2023-07-121-115/+138
| | | | | * Use openArray in decoder functions * Fix iso-2022-jp erroring out in the wrong case
* Improve encoding supportbptato2023-07-127-161/+259
| | | | | | | | * Use the output charset in lineedit (as w3m does) * encoder: fix broken UTF-8 encoding, use openArray instead of var seq for input queue * Add RuneStream as an in-memory interface to EncoderStream * Document display-charset config option
* decoderstream: remove unused functionbptato2023-07-111-9/+0
|
* Buffer search fixes & improvementsbptato2023-07-113-53/+82
| | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch