On 18 Jan 2014, at 15:41, David Nolen <[email protected]> wrote:

> OK, I looked into this. First I was wrong about apply, I was a bit tired when 
> I wrote that, apply works fine in this instance because the dom macros are 
> also functions.

Oh, interesting - that makes complete sense. Out of interest what's 
gen-react-dom-fns for? Is that just some remains of experimentation or does it 
have other uses?

> 
> Second, the reason your code doesn't work is because you can't put "div" tags 
> in "p" tags. If you switch to the surround "p" tag to a "div" it will work 
> just fine. I figured this out by looking at Chrome Elements Inspectors and 
> saw that the DOM did match what was actually written. This is not an Om bug 
> or a React bug, you just have to know that browsers do not like this and the 
> DOM will be different from what React expects. 

Ah, no wonder it didn't work! I would have never guessed this - there's so much 
about the browser I need to learn about.

Thanks so much for spending the time to look at this. It works perfectly for me 
now.

Sam

---
http://sam.aaron.name

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to