Showing text on mouseover - Title element inconsistent, title attribute does nothing
问题 I'm trying to do something similar to this (display a bit of text when a user mouses over an element). Here's a snippet of the html my script generates: <svg width="400" height="400"> <rect x="100" y="100" width="40" height="45" fill="darkred"> <title>Some_Text, 50, 20.09%</title> </rect> </svg> When I mouse over my rects, nothing appears, which isn't consistent since text does appear when I mouse over rects in the above link. I also tried changing the title element within rect to a title