On Thursday, December 18, 2014 8:36:39 AM UTC-5, Ruslan Prokopchuk wrote:
> четверг, 18 декабря 2014 г., 16:33:34 UTC+3 пользователь Ruslan Prokopchuk 
> написал:
> > No, correct way (accordingly to Aaron's link) is to write {:flex "flex"} or 
> > {:flex :flex}, not {:flex true}. But setting any value to boolean attribute 
> > will work in real world, so 1 is short to type, and I prefer it over valid 
> > markup ;-)
> 
> Oh, also empty string is correct: {:flex ""}. If your editor will complete 
> second " for you, it almost as short to type as using number, but will 
> satisfy spec.

Oops! I guess I misinterpreted that... Do you think there's any sense in adding 
special handling for this case? You can see someone asked for special handling 
for checkbox checked: 
https://github.com/aaronc/freactive/blob/master/src/clojure/freactive/dom.cljs#L345-L347.
 But maybe this should be the user's responsibility to know the HTML spec and 
not freactive's? I don't want get-attr-setter to become very complex...

-- 
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