Closed
Bug 189287
Opened 23 years ago
Closed 23 years ago
mouse click is handled by wrong eventhandler
Categories
(Core :: DOM: Events, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 102578
People
(Reporter: konstantin, Assigned: saari)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3
Layout of Page
BODY
|
--DIV-a (zindex:10)
--TABLE
|-onmouseout: DIV hidden
|-onmouseover: DIV visible
|
--TBODY
--TR
--TD
|-onmouseover (TD style change)
|-onmouseout (TD style change)
|-onclick (window.location ...)
clicking on
BODY:DIV-a:TABLE:TBODY:TR:TD
executes BODY:DIV-a:TABLE onmouseout
AND NOT
BODY:DIV-a:TABLE:TBODY:TR:TD onclick
-------------
DIV-a will hide
onclick will only be executed on BODY
-----------
this problem is only on linux with different types of mozilla engines
Tried also the 1.2 mozilla
everything is great with mozilla on i386. no problems with IE or OPERA.
Javacsript code follows:
function kgWriteMenu(kgMenu) {
html = "<DIV id='" + kgMenu.id + "' style='position:absolute;z-index:10;left:" +
kgMenu.x + "px;top:" + kgMenu.y + "px;visibility:hidden;cursor:default;'>";
html += "<table border='" + kgMenu.tableBorder + "' cellpadding='" +
kgMenu.tableCellPadding + "' cellspacing='" + kgMenu.tableCellSpacing + "' ";
html += "bgcolor='" + kgMenu.borderColor + "' class='" + kgMenu.styles + "' ";
if (kgMenu.actions[0]) html += "onclick='window.location=\"" + kgMenu.actions[0]
+ "\"' style='cursor:pointer;' ";
html += "onmouseout='document.getElementById(\"" + kgMenu.id +
"\").style.visibility=\"hidden\";' ";
html += "onmouseover='document.getElementById(\"" + kgMenu.id +
"\").style.visibility = \"visible\";'>";
html += "<tr align='center'>";
html += "<td id='" + kgMenu.id + "_" + 0 + "' width='" + kgMenu.menuWidth + "'
height='" + kgMenu.menuItemHeight + "' bgcolor='" + kgMenu.activebgColor + "'>";
html += kgMenu.items[0] + "</td>";
html += "</tr>";
for (var i = 1; i < kgMenu.numberItems; i++ ) {
html += "<tr align='center'>";
html += "<td id='" + kgMenu.id + "_" + i + "' width='" + kgMenu.menuWidth + "'
height='" + kgMenu.menuItemHeight + "' bgcolor='" + kgMenu.bgColor + "' ";
if (kgMenu.actions[i]) html += "onclick='window.location=\"" + kgMenu.actions[i] +
"\"' style='cursor:pointer;' ";
html += "onmouseover='getElementById(\"" + kgMenu.id + "_" + i +
"\").style.backgroundColor = \"" + kgMenu.activebgColor + "\";' ";
html += "onmouseout='getElementById(\"" + kgMenu.id + "_" + i +
"\").style.backgroundColor = \"" + kgMenu.bgColor + "\";'>";
html += kgMenu.items[i] + "</td>";
html += "</tr>";
}
html += "</table></div>";
document.writeln(html);
}
Reproducible: Always
Steps to Reproduce:
1.click on menu to get somewhere.
2.
3.
Actual Results:
mozilla executes wrong event (onmouseout)
Expected Results:
should have run onclick
Comment 1•23 years ago
|
||
Can you attach a reduced testcase ?
Comment 2•23 years ago
|
||
Work for me on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b)
Gecko/20030114 on WinXP.
Hm. rv:0.9.4.1, Gecko/20020508 -- a bit old.
Comment 3•23 years ago
|
||
dupe of "clicking wrongfully fires onmouseout (linux specific bug)"
see also bug 132592
*** This bug has been marked as a duplicate of 102578 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 4•23 years ago
|
||
Um.... the build this was reported on is a year old...
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•