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
html! seems to decapitalize case-sensitive SVG element tag. #3031
Comments
Since #2699, this is documented. Seeing it pop up from time and time again though, so we should perhaps change this to a different default and preserve the user-casing. The workaround in the linked issue should work though. |
I see, thank you. That seems to have gotten the foreignObject tag to work, but I've seem to have come across another problem.
The div element and the contained text seem to not want to work unless I do the hack down in rendered. No clue what would cause this, I've also tried variables as well as the {"Test!"}. |
Closed due to the original problem being resolved, still having trouble. |
Can you open a specific issue about the new problem you are facing? I believe the handling of leaving the context of |
Will do. |
Problem
Results in a box with the image, but the foreignObject doesn't show. The html output in the inspector looks like so:
SVG tags are case-sensitive, explaining why this wouldn't work. However, after either 1. adding the foreignObject via groupref.set_inner_html() or 2. modifying the element in the browser, the text displays just fine.
I can imagine that either there's a bug/im messing something up or somewhere along the the way yew de-capitalizes the element tags, which does make a degree of sense but makes this particular instance really bothersome.
Environment:
The text was updated successfully, but these errors were encountered: