about summary refs log tree commit diff stats
path: root/src/css/selectorparser.nim
Commit message (Collapse)AuthorAgeFilesLines
* selectorparser: fix broken tostrbptato2024-07-251-11/+27
|
* selectorparser: fix parseNthChild `of' token checkbptato2024-07-071-1/+3
| | | | tokenType had to be checked too
* cssparser: refactorbptato2024-05-011-4/+3
| | | | | | | | | * factor out skipWhitespace * remove streams dependency (cssparser could never stream without blocking the event loop, so we were just passing a StringStream in all cases, which made the whole streaming pointless.)
* css, dom: simplify ident parsing, canvas fixesbptato2024-05-011-1/+1
| | | | | | | | * add CSSStyleDeclaration setter * move ident maps directly into enums * more complete CSSComputedValue stringifier * turn canvas into a pseudo-image in cascade * set canvas to inline-block
* Update code stylebptato2024-04-171-143/+141
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* rudimentary support for <video>, <audio>bptato2024-03-131-1/+2
| | | | | we just treat them as img tags. lazy, but works suprisingly well -- so long as the server sends us a Content-Type, anyway.
* dom: enumize attribute namesbptato2024-02-081-4/+10
|
* dom: atomize id, name, DOMTokenListbptato2024-02-081-10/+30
|
* Update chamebptato2024-02-071-27/+31
| | | | | | | | * Update chame to the latest version * Get rid of nodeType usage * Add atoms * Re-implement DOM attributes * document.write
* Use std/* imports everywherebptato2024-01-071-3/+3
|
* css: add case-insensitive matchingbptato2023-12-111-11/+38
| | | | Also case-sensitive, but for now that is the same as normal matching...
* selectorparser: enum-ize relbptato2023-12-091-17/+28
|
* css: change type of rvalue to char (from Rune)bptato2023-10-011-14/+18
| | | | | | | | We did were not using it as a unicode value anywhere, it was just making our life harder. If we ever need unicode delimiter tokens, we can re-introduce them as a different token type.
* selectorparser: fix missing case insensitivitybptato2023-10-011-10/+16
|
* Use twtstr.join everywherebptato2023-10-011-1/+2
|
* Get rid of unicode.toLowerbptato2023-10-011-1/+1
| | | | | It was used by mistake in a hundred percent of the cases we were using it.
* Move HTML parsing into Chamebptato2023-08-151-1/+2
| | | | Operation "modularize Chawan somewhat" part 2
* css: implement case insensitivitybptato2023-08-101-2/+2
| | | | For some reason I forgot about this.
* css: handle unknown tag names correctlybptato2023-07-251-4/+13
| | | | | | Instead of grouping all of them into TAG_UNKNOWN, match their tag names. To-do: this implementation is not very efficient.
* Remove unused variablebptato2023-01-271-1/+0
|
* WIP selector rewritebptato2023-01-271-346/+274
| | | | pretty slow for some reason
* selectorparser: refactor, fix combinator bugsbptato2023-01-201-79/+79
| | | | Fixes universal selectors after a combinator.
* selectorparser: parse comma correctly in combinatorsbptato2023-01-201-0/+3
|
* selectorparser: do not accept invalid selectorsbptato2023-01-071-44/+78
|
* selectorparser: support :link, :visitedbptato2023-01-011-1/+6
| | | | I say "support", but :visited is never matched.
* selectorparser: accept less invalid selectorsbptato2022-12-311-2/+14
|
* css: fix some bugs and improve cascading a bitbptato2022-12-291-1/+14
|
* selectorparser: fix pseudo elements on combinator selectorsbptato2022-12-281-2/+5
|
* layout/engine: get rid of dom dependencybptato2022-12-271-1/+1
| | | | Layout should only depend on cascading.
* Display text for img tag, background-imagebptato2022-12-161-1/+1
|
* Fix parsing of empty combinator selectorsbptato2022-12-051-1/+6
|
* Add textareabptato2022-11-281-1/+1
| | | | Editing is implemented using an external editor (like vi).
* Fix combinator bugs + reimplement querySelectorAllbptato2022-09-011-42/+20
|
* Use more accurate selector terminologybptato2022-08-231-24/+27
|
* Fix nth-child bugs, rename select to matchbptato2022-08-231-28/+17
|
* Merge functional and normal pseudo-class selectorsbptato2022-08-211-95/+139
| | | | And parse An+B syntax for nth-child/nth-last-child.
* Refactor css function selectors a bitbptato2022-08-201-28/+28
|
* Fix incorrect selector parsing, remove httpclient from loaderbptato2022-08-031-1/+61
|
* Add interactive <select>bptato2022-07-311-1/+3
|
* Update CSS tokenizerbptato2022-07-291-10/+10
| | | | It was slightly outdated and in many places incorrect.
* Implement select element displaybptato2022-07-171-1/+3
| | | | | You can't actually use them yet. But at least they don't flood the screen with options now.
* Fix formsbptato2022-07-171-1/+3
|
* Rename conflicting source filesbptato2022-05-101-0/+340
Nim can't really differentiate between them, unfortunately.