[Webkit-unassigned] [Bug 67149] New: Tooltip not reflecting updated content set on a timeout

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 29 13:07:56 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=67149

           Summary: Tooltip not reflecting updated content set on a
                    timeout
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://jsfiddle.net/rCpqu/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mleibman at google.com


What steps will reproduce the problem?
1. Attach an onmouseover event to an element with a 'title' attribute.
2. In the handler, set the timeout to execute a function that will change the 'title' attribute 100ms after the event.
3. Quickly mouse over the edge of the element.  Try to cross the border but not move the mouse around inside the element.

What is the expected result?
System tooltip pops up on hover showing the new tooltip text.


What happens instead?
System tooltip shows the old tooltip text.


Test case:
http://jsfiddle.net/rCpqu/


<div id="myDiv" title="tooltip" style="padding:10px;background:pink">Hover me</div>

var el = document.getElementById('myDiv');


el.onmouseover = function() {
    setTimeout(function() {
        el.title = 'new tooltip';
    }, 150);
}

el.onmouseout = function() {
    el.title = 'tooltip';
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list