domina
domina copied to clipboard
A DOM manipulation library for ClojureScript
Consider the following code: ``` clojure (listen! (sel "body") :keypress (fn [evt] (println "Keypress" (:keyCode evt)))) ``` On Chrome, I see ASCII codes printed out properly for alphanumeric keys, but...
This allows Domina events to be examined in the repl (and printed and seq'd anywhere). All existing tests pass with this modification.
I'm not really sure how to structure this issue, but basically I'm curious about the thinking behind get-data and set-data!. It seems that, rather than returning/modifying data attributes, they modify...
Hi, I am trying to dispatch a click event on a button - ``` clojure (defn enter-to-click "It captures the enter event on the given element selector (s1) and triggers...
domina/nodes always returns an empty collection in :optimizations :simple, but works as expected in optimizations :advanced To see the issue, for some page with a few divs, run the following...
Restart
hi, here is a pull request which started porting domina test on clojurescript.test as we did in enfocus. At the moment I did not add the piggieback and the ring/compojure...
Domina's `set-value!` doesn't work to change the `value` attribute of a checkbox. Looking at [the code](https://github.com/levand/domina/blob/21f314bea6f80603983921962fd7ad30c067ef91/src/cljs/domina.cljs#L353-L358), I see this is because it's implemented by calling Google Closure Library's `goog.dom.forms/setValue`, whose...
The following does not work in any browser I tested. ``` Clojure (listen! :click (fn [evt] (log "button clicked!"))) ``` Nor does ``` Clojure (listen! js/document :click (fn [evt] (log...
Just finished a long hack session getting touch events to work. Turns out google helpfully strips out the touch information from touch events before domina gets them, and then the...