Skip to content

Instantly share code, notes, and snippets.

@smatting
Last active December 17, 2015 23:38
Show Gist options
  • Select an option

  • Save smatting/5690123 to your computer and use it in GitHub Desktop.

Select an option

Save smatting/5690123 to your computer and use it in GitHub Desktop.
(ns sftl.dom
(:require [clojure.browser.event :as event]
[clojure.browser.dom :as dom]))
(def source (dom/get-element "source"))
(def destination (dom/get-element "destination"))
(dom/append source
(dom/element "Testing me ")
(dom/element "out!"))
"(element " "Testing me " ")" main.js:24143
"string (-element " "Testing me " ")" main.js:24143
"(element " "out!" ")" main.js:24143
"string (-element " "out!" ")" main.js:24143
Uncaught TypeError: Cannot read property 'nodeType' of null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment