Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix to make IE9 display tooltips when setting the title attribute on an element. #503

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants

https://groups.google.com/group/raphaeljs/browse_thread/thread/9e56db1abb92e1cc

If we add a title element as a child of the element we want to apply a title attr to, then tooltips in IE9 work.

Do you want the fall through? Then you would end up having both the wrapping "a" tag with a title and a child title element.

I created the same code, before I saw yours, but without the fall-through and tested on IE7, IE8, IE9, FF latest and chrome latest.

                case "title":
                    var hl = $("title");                                                
                    var val = R._g.doc.createTextNode(value);
                    hl.appendChild(val);
                    node.appendChild(hl);
                break;
                case "href":  

I wanted to change the original behavior as little as possible. However, if other browsers work with <title> as a child element, rather than setting the title attribute then I guess there's no need for it to fall-through.

Collaborator

tomasAlabes commented Jun 23, 2013

Merged in v2.1.1 branch. Thanks!

@StoicLoofah StoicLoofah referenced this pull request in StoicLoofah/chronoline.js Aug 5, 2013

Open

Revisit qtip in IE #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment