om

Please ask the channel first, not @dnolen directly!
devrandomguy 2017-10-22T17:54:52.000045Z

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?

wilkerlucio 2017-10-22T17:55:28.000100Z

it's mostly a white-list

wilkerlucio 2017-10-22T17:56:11.000047Z

if you can't find a tag there, you can create the element with: (js/React.createElement "anytag" #js {:attr "value"} "children")

wilkerlucio 2017-10-22T17:56:37.000094Z

before react 16, react did blacklist some attributes (not tags), but since 16 they stopped doind that

devrandomguy 2017-10-22T17:56:53.000110Z

Excellent, that would be a good place to start experimenting. Thanks for the sitrep 🙂

wilkerlucio 2017-10-22T17:57:00.000030Z

no problem 😉