about summary refs log tree commit diff stats
path: root/src/css/match.nim
Commit message (Collapse)AuthorAgeFilesLines
* dom, match, event: small cleanupbptato2024-07-171-6/+6
|
* misc cleanupsbptato2024-06-221-2/+1
|
* stylednode: move invalidation data to DOMbptato2024-05-271-3/+3
| | | | this way, we do not refer to nodes of previous cascade passes
* cssparser: refactorbptato2024-05-011-3/+2
| | | | | | | | | * 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.)
* Update code stylebptato2024-04-171-69/+84
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* catom: at -> satbptato2024-03-211-1/+1
| | | | just for consistency
* catom: merge TagType with AttrTypebptato2024-03-041-1/+0
| | | | | it's inefficient and pointless to treat them differently, so just derive a new enum from TagType with a macro
* dom: enumize attribute namesbptato2024-02-081-1/+2
|
* Update chamebptato2024-02-071-5/+4
| | | | | | | | * 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-4/+4
|
* css: add case-insensitive matchingbptato2023-12-111-7/+44
| | | | Also case-sensitive, but for now that is the same as normal matching...
* selectorparser: enum-ize relbptato2023-12-091-8/+7
|
* Move HTML parsing into Chamebptato2023-08-151-1/+2
| | | | Operation "modularize Chawan somewhat" part 2
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-011-1/+1
| | | | | | | | | | | | | | * 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.)
* css: handle unknown tag names correctlybptato2023-07-251-0/+2
| | | | | | Instead of grouping all of them into TAG_UNKNOWN, match their tag names. To-do: this implementation is not very efficient.
* css/match: fix next sibling selector (+)bptato2023-02-131-2/+2
|
* WIP selector rewritebptato2023-01-271-86/+69
| | | | pretty slow for some reason
* selectorparser: support :link, :visitedbptato2023-01-011-0/+4
| | | | I say "support", but :visited is never matched.
* css: fix some bugs and improve cascading a bitbptato2022-12-291-0/+2
|
* More DOM workbptato2022-12-191-4/+4
|
* Add JS support to documentsbptato2022-12-181-1/+1
|
* More JS bindingsbptato2022-09-131-4/+6
|
* Fix combinator bugs + reimplement querySelectorAllbptato2022-09-011-77/+31
|
* Fix :nth-last-childbptato2022-08-231-3/+9
|
* Use more accurate selector terminologybptato2022-08-231-3/+3
|
* Fix nth-child bugs, rename select to matchbptato2022-08-231-0/+257