[Webkit-unassigned] [Bug 8817] REGRESSION: TinyMCE: Clicking on a link has no effect

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Jul 18 16:09:06 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8817





------- Comment #4 from dacarson at gmail.com  2006-07-18 16:09 PDT -------
Both Opera 9.0 and FF 1.5.0.4 exhibit similar behaviour. Clicking the link does
nothing. FF and Safari ToT does allow you to right click the link and open in
new window/new tab, which opens the link to sourceforge.
Checking the code, it seems that the experience behaviour is correct. Here is
the code that handles link selection in MCE:
// Patch the darned link
                                        if (lnk && e.type == "mousedown") {
                                               
lnk.setAttribute("mce_real_href", lnk.getAttribute("href"));
                                                lnk.setAttribute("href",
"javascript:void(0);");
                                        }

                                        // Patch back
                                        if (lnk && e.type == "click") {
                                                window.setTimeout(function() {
                                                       
lnk.setAttribute("href", lnk.getAttribute("mce_real_href"));
                                                       
lnk.removeAttribute("mce_real_href");
                                                }, 10);
                                        }


As can be seen, javascript:void(0) is correct.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list