Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dom: clean up namespace handling, add createElementNS | bptato | 2025-01-05 | 1 | -64/+91 |
| | |||||
* | dom: DOMTokenList fixes/improvements | bptato | 2025-01-05 | 1 | -7/+14 |
| | |||||
* | dom: add form length, fix document.getElementsByName("") | bptato | 2025-01-05 | 1 | -0/+10 |
| | |||||
* | dom: clean up, add some strict defs | bptato | 2025-01-05 | 1 | -170/+171 |
| | |||||
* | dom: button fixes | bptato | 2025-01-05 | 1 | -3/+5 |
| | |||||
* | dom: add some table interfaces | bptato | 2025-01-04 | 1 | -25/+259 |
| | |||||
* | dom: radiogroup fixes | bptato | 2025-01-04 | 1 | -17/+20 |
| | |||||
* | dom: implement cssFloat | bptato | 2025-01-04 | 1 | -0/+4 |
| | |||||
* | dom: JS input/form fixes | bptato | 2025-01-03 | 1 | -1/+10 |
| | | | | Fixes acid3 test 53 | ||||
* | env, buffer: restyle on getComputedStyle | bptato | 2025-01-03 | 1 | -0/+4 |
| | | | | | | style/layout invalidation is a mess :( Fixes acid3 test00 | ||||
* | dom: make stringifiers explicit, optimize tokenList toString | bptato | 2025-01-03 | 1 | -3/+3 |
| | |||||
* | dom: add option value setter, input checked setter | bptato | 2025-01-03 | 1 | -22/+26 |
| | |||||
* | dom: fully implement ParentNode mixin | bptato | 2025-01-03 | 1 | -2/+108 |
| | | | | | | | | * standard firstElementChild, lastElementChild * add childElementCount, prepend, append, replaceChildren supporting JSValue "this" values in Monoucha would be useful for these (so you could specify where it's defined in the jsfunc string) | ||||
* | dom: add CSSStyleDeclaration setProperty, removeProperty; stub out scrollTo | bptato | 2025-01-02 | 1 | -17/+49 |
| | |||||
* | layout, dom: input rendering fixes | bptato | 2025-01-01 | 1 | -2/+2 |
| | | | | | * do not display submit/reset text with empty value * fix erroneous blank placement with white-space: pre on new line | ||||
* | dom: add cookie setter stub, HTMLSelectElement stuff | bptato | 2025-01-01 | 1 | -19/+68 |
| | |||||
* | dom: small refactoring + optimization | bptato | 2024-12-31 | 1 | -22/+14 |
| | |||||
* | dom: expose currentScript | bptato | 2024-12-31 | 1 | -1/+1 |
| | |||||
* | buffer: make video, audio clickable | bptato | 2024-12-30 | 1 | -4/+4 |
| | | | | | more intuitive than shoehorning it into "view image" (also makes it easier to apply the content type) | ||||
* | dom, cssvalues: add getComputedStyle | bptato | 2024-12-30 | 1 | -2/+26 |
| | | | | Only available in "app" mode. | ||||
* | dom: add input type getter/setter | bptato | 2024-12-30 | 1 | -1/+1 |
| | |||||
* | script: improve defineConsts | bptato | 2024-12-30 | 1 | -1/+1 |
| | | | | | | Well, I guess this works for now, but something is still wrong. In Gecko, document.__proto__ === Document.__proto__, but in Chawan, it isn't. | ||||
* | env: do not copy attrs, fix screen on client | bptato | 2024-12-28 | 1 | -4/+4 |
| | | | | Now screen.width etc. works in the pager too. | ||||
* | dom: standard querySelector/All; type erase children | bptato | 2024-12-27 | 1 | -12/+50 |
| | |||||
* | dom: set elIndex to -1 for AttrDummyElement | bptato | 2024-12-27 | 1 | -0/+2 |
| | |||||
* | dom: expose getPropertyValue | bptato | 2024-12-27 | 1 | -1/+1 |
| | |||||
* | dom: add focus() | bptato | 2024-12-27 | 1 | -0/+6 |
| | | | | Respects autofocus. | ||||
* | Optimize some Option[string] out | bptato | 2024-12-26 | 1 | -8/+8 |
| | | | | toJS is generally more efficient | ||||
* | buffer: add "app" scripting mode | bptato | 2024-12-26 | 1 | -1/+1 |
| | | | | | | | | | | For APIs that cannot be implemented in a privacy-friendly manner. As a start, I've added accurate screen size queries; getComputedStyle, getBoundingClientRect, etc. should follow. (We have a harmless getComputedStyle already, but it's broken.) Probably, things like JS-based scroll belong in here too, but I'm not sure yet. (Perhaps autofocus should be reused instead?) | ||||
* | env: reflect user agent header in userAgent | bptato | 2024-12-26 | 1 | -0/+1 |
| | |||||
* | dom: optimize textContent, nodeValue; add nodeValue setter | bptato | 2024-12-22 | 1 | -16/+31 |
| | |||||
* | dom: add inline SVG support | bptato | 2024-12-20 | 1 | -85/+178 |
| | |||||
* | response: automatically resume before close | bptato | 2024-12-19 | 1 | -5/+0 |
| | | | | doing it manually is too error prone | ||||
* | css: add :target pseudo class | bptato | 2024-12-17 | 1 | -1/+12 |
| | |||||
* | dom, match: optimize :nth-child, :nth-last-child | bptato | 2024-12-17 | 1 | -8/+30 |
| | | | | | | I want to use it in the UA sheet, so the loop won't cut it. (Also fix a parsing bug that prevented "of" from working.) | ||||
* | default(T) -> T.default, add some strict defs | bptato | 2024-12-17 | 1 | -1/+1 |
| | |||||
* | css: resolve units to px before layout | bptato | 2024-12-16 | 1 | -6/+15 |
| | | | | Lets us skip a couple pointless multiplications/divisions during layout. | ||||
* | dom, css: fix case-insensitive class/id/attr matching | bptato | 2024-12-15 | 1 | -7/+9 |
| | | | | Uses an additional lower-case map for O(1) case-insensitive comparisons. | ||||
* | css: align h[1-6] behavior with w3m | bptato | 2024-12-14 | 1 | -0/+23 |
| | | | | | | | | | | | Implemented using proprietary selectors -cha-first-node and -cha-last-node, modeled after -moz-first-node and -moz-last-node. I think they are compatible. That does mean this is more limited than w3m's trimming, e.g. it can't really deal with nesting or empty tags. I think this is fine, as it's mainly meant for unstyled documents in the first place (which are unlikely to have e.g. MAIN tags). | ||||
* | dom: remove cached childNodes, children pointers | bptato | 2024-12-13 | 1 | -34/+37 |
| | | | | | | | Instead, just define the actual value over the getter function on the first use. Also, avoid accidentally creating the attributes NamedNodeMap on adopt. | ||||
* | dom: queryCommandSupported, HTMLIFrameELement stub | bptato | 2024-12-13 | 1 | -0/+7 |
| | |||||
* | mimetypes: use cmpIgnoreCase for JS types | bptato | 2024-12-12 | 1 | -4/+4 |
| | |||||
* | cssparser: misc cleanup | bptato | 2024-12-07 | 1 | -2/+2 |
| | | | | another case of "the object model was unnecessarily complex" | ||||
* | dom: another insertAdjacentHTML fix | bptato | 2024-12-07 | 1 | -2/+2 |
| | | | | ctx can be HTML even if we take `this' | ||||
* | dom: fix crash on insertAdjacentHTML | bptato | 2024-12-07 | 1 | -28/+15 |
| | | | | In my defense, it was broken in the spec too. | ||||
* | mimetypes: refactor, use mime.types for inline image extensions | bptato | 2024-12-05 | 1 | -2/+16 |
| | | | | | | | | | | | | * remove std/streams use from mime.types; mmap and parse directly * use mime.types for inline image extensions * add some jpeg file extensions Latter came up because I was trying to add a format locally and it wouldn't recognize it on images from my file system (i.e. by extension). As a security measure we still do not allow additional extensions for predefined inline image types. | ||||
* | dom: add support for @import | bptato | 2024-12-01 | 1 | -26/+33 |
| | | | | only the most basic form; no media queries yet | ||||
* | twtstr: add mypairs | bptato | 2024-11-28 | 1 | -8/+8 |
| | | | | | This couldn't get into system.nim for technical reasons, but it's still pretty useful when iterating over non-mutable openArrays. | ||||
* | dom: fix some comparisons | bptato | 2024-11-24 | 1 | -2/+2 |
| | |||||
* | loader/* -> server | bptato | 2024-11-24 | 1 | -4/+4 |
| | | | | one less mystery |