Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | event: remove ctx from CustomEvent | bptato | 2023-12-03 | 1 | -13/+9 |
| | | | | | Instead, make finalizers optionally pass their runtime for resource deallocation. | ||||
* | dom: fix relList setter regression, remove rel() | bptato | 2023-12-02 | 1 | -5/+14 |
| | |||||
* | dom: redefine Node.contains to match standard | bptato | 2023-12-01 | 1 | -4/+6 |
| | | | | (and expose it as a JS function) | ||||
* | dom: functionize parentElement, improve Node.document | bptato | 2023-12-01 | 1 | -7/+7 |
| | | | | | | * parentElement is now just a function. * Remove TODO from node.document; it is useful and not going anywhere. * Check for Nim type in Node.document, not nodeType | ||||
* | dom: fix `children' being available for all Nodes | bptato | 2023-12-01 | 1 | -6/+17 |
| | | | | It is only defined for Document, Element, DocumentFragment. | ||||
* | html: add HTMLElement.dataset (+ some twtstr cleanup) | bptato | 2023-12-01 | 1 | -15/+63 |
| | |||||
* | env: add window.top, window.parent | bptato | 2023-11-29 | 1 | -3/+12 |
| | | | | | Also, func-ize some similar identity functions, and add TODOs about [Replaceable]. | ||||
* | dom: add document.readyState | bptato | 2023-11-27 | 1 | -0/+6 |
| | |||||
* | buffer: add DOMContentLoaded, misc event improvements | bptato | 2023-11-27 | 1 | -3/+3 |
| | | | | | | | * Add DOMContentLoaded * Re-use the same event object for all elements * Reshape if an event was fired * Reshape on setTimeout/setInterval fired | ||||
* | dom: expose HTMLInputElement.checked | bptato | 2023-11-24 | 1 | -1/+1 |
| | |||||
* | env: stub out window.getComputedStyle() | bptato | 2023-11-21 | 2 | -1/+6 |
| | | | | not a real implementation, just to reduce exceptions | ||||
* | dom: add baseURI, insertAdjacentHTML | bptato | 2023-11-20 | 1 | -0/+35 |
| | |||||
* | twtstr: remove tolower, isWhitespace | bptato | 2023-11-20 | 1 | -1/+1 |
| | | | | | | | | * tolower: strutils toLowerAscii is good enough for the cases where we need it. Also, it's easy to confuse with unicode toLower and vice versa. * isWhitespace: in AsciiWhitespace is more idiomatic. Also has a naming collision with unicode toLower. | ||||
* | env: add window.frames, window.self | bptato | 2023-11-15 | 1 | -0/+6 |
| | | | | both just return identity | ||||
* | dom: fix lastElementChild | bptato | 2023-11-13 | 1 | -1/+1 |
| | |||||
* | dom: expose head, body, window (as defaultView) | bptato | 2023-10-25 | 1 | -3/+3 |
| | |||||
* | window: inherit from EventTarget | bptato | 2023-10-25 | 1 | -2/+3 |
| | |||||
* | dom: add some CSSStyleDeclaration functions | bptato | 2023-10-25 | 1 | -0/+44 |
| | |||||
* | reduce new() usage | bptato | 2023-10-25 | 2 | -43/+34 |
| | |||||
* | dom: proper relList support | bptato | 2023-10-25 | 1 | -30/+71 |
| | |||||
* | Add jspropnames, CSSStyleDeclaration stub | bptato | 2023-10-25 | 1 | -25/+103 |
| | |||||
* | dom: add cloneNode | bptato | 2023-10-24 | 1 | -2/+89 |
| | |||||
* | dom: add outerHTML setter | bptato | 2023-10-23 | 1 | -53/+143 |
| | | | | Also, misc. refactorings | ||||
* | Add innerHTML setter | bptato | 2023-10-23 | 2 | -9/+66 |
| | | | | yay | ||||
* | dom: use same url in eval filename as in the console.log statement | bptato | 2023-10-22 | 1 | -2/+2 |
| | |||||
* | base64: reduce pointless re-coding using JSString | bptato | 2023-10-21 | 1 | -2/+4 |
| | | | | | We now expose some functions from QuickJS to interact with JavaScript strings without re-encoding them into UTF-8. | ||||
* | javascript: add TextEncoder, TextDecoder | bptato | 2023-10-21 | 1 | -0/+2 |
| | |||||
* | WindowAttributes: refactor | bptato | 2023-10-19 | 2 | -2/+2 |
| | | | | | | * rename module (window -> winattrs, to avoid conflict with env/window) * do not use result * remove unused cell_ratio | ||||
* | Refactor Console | bptato | 2023-10-13 | 2 | -43/+6 |
| | | | | | * merge dom.console & client.Console * move client-specific stuff out of Console (into callbacks when necessary) | ||||
* | Use twtstr.join everywhere | bptato | 2023-10-01 | 2 | -2/+4 |
| | |||||
* | Get rid of unicode.toLower | bptato | 2023-10-01 | 1 | -3/+3 |
| | | | | | It was used by mistake in a hundred percent of the cases we were using it. | ||||
* | Improve implicit form submission | bptato | 2023-09-30 | 1 | -10/+15 |
| | | | | | | * Implement the "default button" part of the standard. * If the submitter is the form, formmethod may be called on it. Check if this is the case in the function, and if yes, return the form's method. | ||||
* | client, timeout: simplify | bptato | 2023-09-24 | 1 | -1/+1 |
| | | | | | We don't use the generic feature of selectors, so just unify the client & buffer timeout types. | ||||
* | fix size for some input types | bptato | 2023-09-22 | 1 | -1/+1 |
| | | | | | | padToWidth should be called for all input types in InputWithSize. Also, they should be underlined by ua.css. | ||||
* | buffer: support <a name=... for anchor navigation | bptato | 2023-09-20 | 1 | -0/+9 |
| | |||||
* | update chame | bptato | 2023-09-19 | 3 | -2/+46 |
| | | | | and with that, resolve the unknown input type issue | ||||
* | dom: fix regression | bptato | 2023-09-19 | 1 | -1/+1 |
| | |||||
* | dom: add document.all, misc fixes | bptato | 2023-09-19 | 1 | -17/+63 |
| | | | | | | | | * Fix an issue with Collection cache invalidation (we must invalidate collections of the parent node on insertion, so that it triggers a refresh). * Remove circular reference of document.document, now we use a function instead. | ||||
* | dom: exclude password from exception log | bptato | 2023-09-19 | 1 | -1/+3 |
| | |||||
* | response: add blob() function | bptato | 2023-09-17 | 1 | -1/+1 |
| | |||||
* | dom: fix incorrect iteration in descendants | bptato | 2023-09-14 | 1 | -2/+3 |
| | |||||
* | Update submodules | bptato | 2023-09-14 | 2 | -2/+11 |
| | |||||
* | move around more modules | bptato | 2023-09-14 | 3 | -9/+9 |
| | | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/ | ||||
* | event: use JSDict | bptato | 2023-09-09 | 1 | -20/+18 |
| | |||||
* | fetch: use JSDict | bptato | 2023-09-09 | 1 | -1/+1 |
| | |||||
* | dom: align some return values with their webidl | bptato | 2023-09-08 | 2 | -13/+13 |
| | | | | | Certain functions were returning types that do not align with the WebIDL defined in the dom standard. | ||||
* | fetch: allow string input, allow init dictionary | bptato | 2023-09-08 | 1 | -2/+4 |
| | |||||
* | Add btoa, atob | bptato | 2023-09-07 | 1 | -0/+7 |
| | |||||
* | dom: set input type to text if not given | bptato | 2023-09-07 | 1 | -0/+2 |
| | | | | | | | HTMLInputElement.inputString depends on inputType not being unknown. (Maybe we should move this logic out of the html parser module entirely and just set text as the default value...) | ||||
* | twtstr: remove toLowerAscii2 | bptato | 2023-09-07 | 1 | -8/+10 |
| |