Skip to content
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

Incorrect use of xmlns "xlink" in img tag #57

Open
liamwhite opened this issue Mar 19, 2021 · 0 comments
Open

Incorrect use of xmlns "xlink" in img tag #57

liamwhite opened this issue Mar 19, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@liamwhite
Copy link

Was curious why some user avatars were not rendering. That might be intentional, but this definitely isn't:

def anonymous_avatar(_name, class \\ "avatar--100px") do
class = Enum.join(["image-constrained", class], " ")
content_tag :div, class: class do
raw("<img xlink:href=\"/images/no_avatar.svg\" src=\"/images/no_avatar.svg\">")
end
end

@liamwhite liamwhite added the bug Something isn't working label Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant