Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix double line bug in dump mode | bptato | 2023-07-29 | 2 | -3/+4 |
| | |||||
* | Add default background/foreground color override | bptato | 2023-07-29 | 6 | -39/+82 |
| | |||||
* | css: very minor optimizations | bptato | 2023-07-28 | 2 | -19/+15 |
| | | | | probably insignificant overall | ||||
* | Update makefile | bptato | 2023-07-28 | 1 | -4/+8 |
| | | | | small re-organization | ||||
* | mediaquery: fix some missing has checks in parser | bptato | 2023-07-28 | 1 | -0/+2 |
| | |||||
* | layout: count spacing before inline padding too | bptato | 2023-07-28 | 1 | -2/+10 |
| | |||||
* | Fix twtstr.cmp | bptato | 2023-07-28 | 1 | -2/+2 |
| | | | | We were comparing the wrong sides of ranges here. | ||||
* | htmlparser: replace stray insert call | bptato | 2023-07-27 | 1 | -1/+1 |
| | |||||
* | dom: fix hasChild | bptato | 2023-07-27 | 1 | -1/+1 |
| | | | | Return true instead of false when a node with nodeType was found. | ||||
* | layout: remove incorrect comment | bptato | 2023-07-27 | 1 | -2/+0 |
| | |||||
* | htmlparser: fix <th> not closing table cells | bptato | 2023-07-27 | 1 | -1/+1 |
| | | | | | <th> should close table cells, but was missing from the table cell closing list for some reason. | ||||
* | layout: distinguish padding from spacing | bptato | 2023-07-27 | 2 | -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 parentheses | bptato | 2023-07-27 | 1 | -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 spacing | bptato | 2023-07-27 | 1 | -5/+6 |
| | | | | | So e.g. padding: 1px does not inhibit automatic addition of spaces for inline blocks. | ||||
* | htmlparser: remove stray nil comparison | bptato | 2023-07-27 | 1 | -4/+3 |
| | |||||
* | layout: remove unused variables | bptato | 2023-07-27 | 1 | -3/+0 |
| | |||||
* | htmlparser: remove nil comparisons for Handle | bptato | 2023-07-27 | 2 | -41/+52 |
| | | | | This makes it possible to use non-reference types as Handle. | ||||
* | layout: refactor absolute positioning width calc | bptato | 2023-07-27 | 1 | -13/+84 |
| | | | | Still not perfect, but at least not completely broken. | ||||
* | doc: add missing end tag | bptato | 2023-07-26 | 1 | -1/+1 |
| | |||||
* | Add suspend() function (bound to C-z) | bptato | 2023-07-26 | 3 | -2/+26 |
| | |||||
* | layout: fix superfluous inline whitespace | bptato | 2023-07-25 | 1 | -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 function | bptato | 2023-07-25 | 1 | -1/+1 |
| | |||||
* | css: handle unknown tag names correctly | bptato | 2023-07-25 | 3 | -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 parser | bptato | 2023-07-25 | 2 | -5/+7 |
| | |||||
* | html: add SEARCH tag | bptato | 2023-07-25 | 1 | -17/+17 |
| | |||||
* | layout: fix position: relative sizes | bptato | 2023-07-25 | 1 | -2/+2 |
| | | | | | Only inherit width from the last positioned element if position: absolute is set. | ||||
* | Add compileMatchRegex | bptato | 2023-07-25 | 3 | -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 elements | bptato | 2023-07-25 | 1 | -2/+4 |
| | | | | Additions sourced from the HTML standard. | ||||
* | layout: refactor sizing | bptato | 2023-07-25 | 2 | -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 functions | bptato | 2023-07-23 | 1 | -3/+35 |
| | |||||
* | css: fix percentage min/max-width values | bptato | 2023-07-23 | 1 | -1/+1 |
| | |||||
* | Fix compilation on nim 1.6.10 | bptato | 2023-07-17 | 1 | -2/+3 |
| | | | | It appears there is a compiler bug we have to work around there. | ||||
* | htmlparser: fix regression | bptato | 2023-07-17 | 1 | -2/+2 |
| | | | | Fixed unintended variable shadowing introduced during refactoring | ||||
* | Include libunicode header in binding | bptato | 2023-07-15 | 1 | -0/+5 |
| | |||||
* | htmlparser: make getTemplateContent optional | bptato | 2023-07-15 | 1 | -3/+4 |
| | |||||
* | htmlparser: check required callbacks | bptato | 2023-07-15 | 1 | -0/+13 |
| | |||||
* | htmlparser: add parse error handling | bptato | 2023-07-15 | 4 | -281/+437 |
| | |||||
* | htmlparser: correct outdated comment | bptato | 2023-07-14 | 1 | -9/+3 |
| | |||||
* | decoderstream: refactoring + iso2022jp fixes | bptato | 2023-07-12 | 1 | -115/+138 |
| | | | | | * Use openArray in decoder functions * Fix iso-2022-jp erroring out in the wrong case | ||||
* | Improve encoding support | bptato | 2023-07-12 | 7 | -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 function | bptato | 2023-07-11 | 1 | -9/+0 |
| | |||||
* | Buffer search fixes & improvements | bptato | 2023-07-11 | 3 | -53/+82 |
| | | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch | ||||
* | buffer: fix textarea regression | bptato | 2023-07-10 | 1 | -2/+6 |
| | | | | | Fix bug of not setting focus on clicked text area elements, which would result in the input text being discarded. | ||||
* | htmlparser: fix form association regression | bptato | 2023-07-10 | 2 | -8/+13 |
| | | | | | | | associateWithForm was checking whether the element was in the same tree as the form, however associateWithForm is called when element is has not been inserted into the tree yet. As a fix, pass the intended parent and perform the check on that. | ||||
* | term: fix cursorGoto without termcap | bptato | 2023-07-10 | 1 | -1/+1 |
| | |||||
* | htmlparser: remove more references to dom | bptato | 2023-07-09 | 2 | -13/+34 |
| | |||||
* | htmlparser: more Option wrapping, remove dom reference | bptato | 2023-07-09 | 1 | -18/+21 |
| | |||||
* | htmlparser: fix fragment case, fix head bug | bptato | 2023-07-09 | 1 | -8/+13 |
| | | | | Also, wrap head in an Option | ||||
* | htmltokenizer: only yield once | bptato | 2023-07-09 | 1 | -12/+22 |
| | | | | | Seems to reverse the +200M peakmem during compile introduced by the previous commit. | ||||
* | htmlparser: decouple from DOM | bptato | 2023-07-09 | 8 | -544/+1113 |
| | | | | | Instead of directly appending nodes to the DOM, use a DOMBuilder interface. |