summary refs log tree commit diff stats
path: root/lib/js/dom.nim
Commit message (Collapse)AuthorAgeFilesLines
* Documentation only, dom (#20584)Juan Carlos2022-10-171-0/+31
| | | Add docs to dom
* Markdown code blocks migration part 7 (#20547)Andrey Makarov2022-10-121-1/+2
|
* Add missing proc to dom (#20378)Juan Carlos2022-09-191-0/+57
| | | | | | | | | * Add missing proc from dom * Add missing proc from dom * Add missing proc from dom Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* Add `document.hidden` and `document.visibilityState` properties (#19817)tandy10002022-05-241-0/+2
|
* Add support for `Window.matchMedia` (#19648)tandy10002022-03-261-0/+6
|
* Implement RFC-413 (#18749)Juan Carlos2021-08-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * https://github.com/nim-lang/Nim/pull/18749#discussion_r696320995 * Update lib/js/dom_extensions.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/js/dom_extensions.nim * https://github.com/nim-lang/Nim/pull/18749#discussion_r696913310 Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Cleanup interval and timeout procs (#18431)Antonis Geralis2021-07-051-8/+10
| | | clear/setTimeout procs were using ref ref Timeout. Added more interval overloads. Corrections.
* readAsText supports both Blob and File (fixes #18187) (#18189)mantielero2021-06-211-2/+2
|
* add `dom.scrollIntoView` with options; refs #18093 (#18181)Rainbow Asteroids2021-06-051-0/+6
|
* Add `checked` to dom (#18033)Joey2021-05-171-0/+3
| | | This allows the ability to set a checkbox as checked programmatically. It's different from `setAttribute` because once an input has been clicked on by the user, `setAttribute` no longer works programmatically.
* Documentation only, dom (#17770)Juan Carlos2021-04-191-1/+3
| | | | | | | | | | | | | | * ReSync with Devel * ReSync * https://github.com/timotheecour/Nim/issues/674 * Update lib/js/dom.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* add createElementNS, will hopefully fix svgs for karax (#16938)Antonis Geralis2021-02-051-0/+1
|
* Add StorageEvent and correct Storage object (#16865)Antonis Geralis2021-01-291-8/+18
| | | There is no `LocalStorage` type, it's `Storage`
* clean up the docs of some modules under lib/js (#16579)flywind2021-01-041-1/+1
|
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-211-5/+5
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-1/+1
| | | | | * Fix broken links in docs * Fix rand HSlice links
* add math.isNaN (#16179)Timothee Cour2020-12-111-0/+1
| | | | | | | * add math.isNaN * isNaN now works with --passc:-ffast-math; tests * Update lib/pure/math.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add documentElement to Document. (#15943)treeform2020-11-131-0/+1
|
* add parent property to window in dom.nim (#15922)Bung2020-11-121-0/+1
|
* dom.Navigator add missing attributes (#15310)Juan Carlos2020-09-141-1/+16
| | | | | | | * Add missing attributes and methods to dom.Navigator * Add missing attributes and methods to dom.Navigator * Add missing attributes and methods to dom.Navigator
* Shadow Dom apis (#14979)Bung2020-07-211-0/+32
| | | | | | | | | | | * shadow dom api * fix typos * host to Element type * fix code style * move elementsFromPoint to dom_extensions.nim
* add missing props,procs (#14978)Bung2020-07-141-0/+12
|
* Add missing dom.nim things (#14944)treeform2020-07-091-2/+30
|
* Clean out dom (#14855)Juan Carlos2020-06-301-4/+0
| | | | | * Clean out dom * Clean out dom
* Add all missing css properties to dom.nim. (#14825)treeform2020-06-261-4/+270
| | | | | * Add all missing css properties * remove extra space
* Add hasAttribute method to dom.nim. (#14814)treeform2020-06-251-0/+1
| | | See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
* Export fields from the Selection object. (#14752)treeform2020-06-211-0/+7
| | | See: https://developer.mozilla.org/en-US/docs/Web/API/Selection
* Add css white-space property to dom.nim. (#14743)treeform2020-06-211-0/+1
| | | https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
* Add clipPath to dom.nim. (#14435)treeform2020-05-241-1/+2
| | | Just adds a single new css atribute, see: https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path .
* Add missing attributes and methods to JavaScript DOM (#14428)Mildred Ki'Lya2020-05-221-0/+14
| | | | | | | | | | | | | | | | | - content attribute to access HTML template element: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement/content - ownerDocument to access the owning document from a DOM Node: https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument - outerHTML to get/set the outer HTML representation of a Node: https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument - createComment() to create comment Nodes: https://developer.mozilla.org/en-US/docs/Web/API/Document/createComment - querySelector() and querySelectorAll() on Nodes: https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelector https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll
* fixes a bug reported in https://forum.nim-lang.org/t/6361 (#14422)Andreas Rumpf2020-05-211-31/+31
|
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-1/+1
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* add FileReader Web API to js dom (#14105)cooldome2020-04-271-9/+59
| | | | | * add FileReader to js dom * minor improvement Co-authored-by: cooldome <ariabushenko@bk.ru>
* Fix the getSelection method. (#13632)treeform2020-04-211-1/+8
|
* fix newDomParser (#13981)Timothee Cour2020-04-161-1/+1
|
* Add jsdomparser (#13920)Juan Carlos2020-04-131-1/+18
| | | | | | | | | | | | | | | | | * Add jsdomparser * Add jsdomparser * Add jsdomparser * https://github.com/nim-lang/Nim/pull/13920#issuecomment-610727142 * https://github.com/nim-lang/Nim/pull/13920#issuecomment-610727142 * https://github.com/nim-lang/Nim/pull/13920#issuecomment-610727142 * https://github.com/nim-lang/Nim/pull/13920#discussion_r405932909 * https://github.com/nim-lang/Nim/pull/13920#discussion_r406502592
* Add more JS stuff to dom.nim (#13483)treeform2020-03-111-26/+45
| | | | | | | | | | | | | | | * Add more JS stuff to dom.nim * Make all links to docs doc comments. * Fix minor textContent * space. * Remove Selection object. * More work on docs. * Fixing links. * Made the links be "see <docs>".
* scrollTop must be settable (#13263)Jairo2020-01-271-0/+1
| | | | | | | | * scrollTop must be assignable Make scrollTop settable * add missing export
* Add "origin" to window.location (#13251)Jairo2020-01-241-0/+1
| | | Add "origin" to window location: https://www.w3schools.com/jsref/prop_loc_origin.asp
* Fix many broken linksJjp1372019-10-221-1/+1
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* fix failing JS testsnarimiran2019-07-221-1/+0
|
* Add `opacity` to JS `Style`Benjamin Summerton2019-07-211-0/+2
| | | I noticed this was missing. It has cross browser support: https://developer.mozilla.org/en-US/docs/Web/CSS/opacity#Browser_compatibility
* some dom proc correction and complement (#10684)liuxiaodong2019-02-151-4/+9
|
* DOM module: re-add more missing stuffAraq2019-02-081-1/+36
|
* DOM module: add more missing stuffAraq2019-02-071-0/+3
|
* DOM.nim: fix regression, missing procsAraq2019-02-061-0/+2
|
* DOM API: make compatible with Karax's requirements (#10517)Andreas Rumpf2019-02-021-130/+759
| | | | | * DOM API: make compatible with Karax's requirements * make tools\dochack.nim compile again
* Remove long deprecated stuff (#10332)Miran2019-01-181-28/+2
|
* Exports dom.Style (#8444)Dominik Picheta2018-09-011-1/+1
|
* Adds TextAreaElement type.Dominik Picheta2018-05-141-1/+7
|