about summary refs log tree commit diff stats
path: root/src/html
Commit message (Collapse)AuthorAgeFilesLines
* event: remove ctx from CustomEventbptato2023-12-031-13/+9
| | | | | Instead, make finalizers optionally pass their runtime for resource deallocation.
* dom: fix relList setter regression, remove rel()bptato2023-12-021-5/+14
|
* dom: redefine Node.contains to match standardbptato2023-12-011-4/+6
| | | | (and expose it as a JS function)
* dom: functionize parentElement, improve Node.documentbptato2023-12-011-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 Nodesbptato2023-12-011-6/+17
| | | | It is only defined for Document, Element, DocumentFragment.
* html: add HTMLElement.dataset (+ some twtstr cleanup)bptato2023-12-011-15/+63
|
* env: add window.top, window.parentbptato2023-11-291-3/+12
| | | | | Also, func-ize some similar identity functions, and add TODOs about [Replaceable].
* dom: add document.readyStatebptato2023-11-271-0/+6
|
* buffer: add DOMContentLoaded, misc event improvementsbptato2023-11-271-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.checkedbptato2023-11-241-1/+1
|
* env: stub out window.getComputedStyle()bptato2023-11-212-1/+6
| | | | not a real implementation, just to reduce exceptions
* dom: add baseURI, insertAdjacentHTMLbptato2023-11-201-0/+35
|
* twtstr: remove tolower, isWhitespacebptato2023-11-201-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.selfbptato2023-11-151-0/+6
| | | | both just return identity
* dom: fix lastElementChildbptato2023-11-131-1/+1
|
* dom: expose head, body, window (as defaultView)bptato2023-10-251-3/+3
|
* window: inherit from EventTargetbptato2023-10-251-2/+3
|
* dom: add some CSSStyleDeclaration functionsbptato2023-10-251-0/+44
|
* reduce new() usagebptato2023-10-252-43/+34
|
* dom: proper relList supportbptato2023-10-251-30/+71
|
* Add jspropnames, CSSStyleDeclaration stubbptato2023-10-251-25/+103
|
* dom: add cloneNodebptato2023-10-241-2/+89
|
* dom: add outerHTML setterbptato2023-10-231-53/+143
| | | | Also, misc. refactorings
* Add innerHTML setterbptato2023-10-232-9/+66
| | | | yay
* dom: use same url in eval filename as in the console.log statementbptato2023-10-221-2/+2
|
* base64: reduce pointless re-coding using JSStringbptato2023-10-211-2/+4
| | | | | We now expose some functions from QuickJS to interact with JavaScript strings without re-encoding them into UTF-8.
* javascript: add TextEncoder, TextDecoderbptato2023-10-211-0/+2
|
* WindowAttributes: refactorbptato2023-10-192-2/+2
| | | | | | * rename module (window -> winattrs, to avoid conflict with env/window) * do not use result * remove unused cell_ratio
* Refactor Consolebptato2023-10-132-43/+6
| | | | | * merge dom.console & client.Console * move client-specific stuff out of Console (into callbacks when necessary)
* Use twtstr.join everywherebptato2023-10-012-2/+4
|
* Get rid of unicode.toLowerbptato2023-10-011-3/+3
| | | | | It was used by mistake in a hundred percent of the cases we were using it.
* Improve implicit form submissionbptato2023-09-301-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: simplifybptato2023-09-241-1/+1
| | | | | We don't use the generic feature of selectors, so just unify the client & buffer timeout types.
* fix size for some input typesbptato2023-09-221-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 navigationbptato2023-09-201-0/+9
|
* update chamebptato2023-09-193-2/+46
| | | | and with that, resolve the unknown input type issue
* dom: fix regressionbptato2023-09-191-1/+1
|
* dom: add document.all, misc fixesbptato2023-09-191-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 logbptato2023-09-191-1/+3
|
* response: add blob() functionbptato2023-09-171-1/+1
|
* dom: fix incorrect iteration in descendantsbptato2023-09-141-2/+3
|
* Update submodulesbptato2023-09-142-2/+11
|
* move around more modulesbptato2023-09-143-9/+9
| | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/
* event: use JSDictbptato2023-09-091-20/+18
|
* fetch: use JSDictbptato2023-09-091-1/+1
|
* dom: align some return values with their webidlbptato2023-09-082-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 dictionarybptato2023-09-081-2/+4
|
* Add btoa, atobbptato2023-09-071-0/+7
|
* dom: set input type to text if not givenbptato2023-09-071-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 toLowerAscii2bptato2023-09-071-8/+10
|