-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG image tag not rendering in firefox or safari #58
Comments
You know that freactive-dom doesn't use React right? It uses its own I did start (and almost finish) a React renderer for it that would be a On Tue, Nov 8, 2016 at 3:23 PM, drakezhard [email protected] wrote:
|
I didn't know that XD. I just assumed it was the back-end because I saw a react.cljs file in the source code. Still Freactive's Hiccup flavor doesn't properly render |
I'm not completely sure what the bug is, but I suspect it has to do with React. Hiccup doesn't support React's dangerouslySetInnerHtml property, but sablono does. Somehow Chrome recognizes the href property, but Firefox and Safari require xlink:href property. After Freactive compiles the Hiccup syntax React spits out the correct image tag but neither Firefox or Safari render it. Finally Sablono is a library with hiccup syntax, that allows us to use the property dangerouslySetInnerHtml. The following is my repro of the bug.
This is the HTML template body, calling it properly renders the image tag on all browsers:
Freactive and Om(w/ Sablono) code:
The text was updated successfully, but these errors were encountered: