This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-22
Channels
- # aws (4)
- # bangalore-clj (2)
- # beginners (99)
- # boot (8)
- # clojars (22)
- # clojure (87)
- # clojure-dev (2)
- # clojure-greece (10)
- # clojure-russia (22)
- # clojurescript (80)
- # cursive (4)
- # data-science (2)
- # datomic (10)
- # emacs (1)
- # fulcro (1)
- # garden (2)
- # luminus (1)
- # lumo (29)
- # off-topic (20)
- # om (6)
- # onyx (18)
- # parinfer (7)
- # perun (1)
- # portkey (28)
- # re-frame (93)
- # reagent (59)
- # ring-swagger (2)
- # shadow-cljs (31)
- # slack-help (15)
- # spacemacs (5)
- # uncomplicate (3)
- # yada (6)
Good morning, question about SVG support. I see that the supported elements are listed in Om's src/main/om/dom.cljc
. If I wanted to use an element that is not on the list, foreignObject
, should that be as simple as adding the element to the vector and adding a set of attrs to the supported-attrs below? In other words, are these lists merely whitelists of known working elements, or do they each represent work done somewhere else, say, in React?
it's mostly a white-list
if you can't find a tag there, you can create the element with: (js/React.createElement "anytag" #js {:attr "value"} "children")
before react 16, react did blacklist some attributes (not tags), but since 16 they stopped doind that
Excellent, that would be a good place to start experimenting. Thanks for the sitrep 🙂
no problem 😉