mouseup fails to fire when part of a table is selected




DOM: Events
13 years ago
9 years ago


(Reporter: Felipe, Unassigned)


(Depends on: 1 bug)

Windows 2000

Firefox Tracking Flags

(Not tracked)





13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

In the code pasted in below and at the referenced URL, the mouseup event fails
to fire when following a mousedown over an empty table cell if some of the table
is already selected.

Reproducible: Always

Steps to Reproduce:
1. Click and drag from the first row to the "foo" cell
2. Click and drag in the empty cells on the right. (The cursor should be a
circle with a slash.)
3. Observe that "mouseup" doesn't fire when you release the mouse here.
Actual Results:  
No mouseup event.

Expected Results:  
A mouseup event should fire.

<table id='myTable' border='1'>
var theTable = document.getElementById('myTable');
var reportMouse = function(e) {; };
theTable.addEventListener('mousedown', reportMouse, false);
theTable.addEventListener('mouseup', reportMouse, false);
//SHOULDN'T NEED THIS, BUT: debugWindow.hide()

var DebugWindow = function(styleAttributes) {
	var thisCopy = this;

	this.pane = document.createElement('div'); = 'fixed'; = 0; = 0; = 'none'; = 'small'; = '200px'; = 'darkred'; = 'white';

	for (var attribute in styleAttributes) {[attribute] = styleAttributes[attribute];

	var header = document.createElement('h4');
	header.appendChild(document.createTextNode('Debug Window'));

	this.messageDiv = document.createElement('div');

	var hideButton = document.createElement('button');
	hideButton.onclick = function() {
	} = {};


	return this;

//KEYS MUST EVALUATE TO BOOLEAN TRUE = function(key, newValue) { = 'block';

	if (key) {
		var keyExists =[key];
		var newTextNode = document.createTextNode(newValue);

		if (keyExists) {[key].value = newValue;[key].elem.replaceChild(
		} else {[key] = {
			   value: newValue, elem: document.createElement('div')
			   document.createTextNode(key+': ')

DebugWindow.prototype.hide = function() { = 'none'; = {};

window.debugWindow = new DebugWindow();
Do you see the bug in the latest nightly trunk build?

Comment 2

13 years ago
Yes, I do.
Ah, this is a dragging operation, you're talking about, right?
In that case, indeed, a mouseup event is not fired.
Probably related to bug 180514.
Component: General → DOM: Events
Product: Firefox → Core
Version: unspecified → Trunk

Comment 4

13 years ago
Yeah, bug 180514 does appear to be related. Maybe all mouse events after
"mousedown" are halted once certain criteria are met?

A difference between this bug and that one is that here, the cursor changes to a
circle with a slash.

Comment 5

13 years ago
I have also independently confirmed this in another piece of code that I'm working on. If the mousedown occurs in a 'position: relative' element, the 'mouseover' handler I have installed on the document element doesn't receive any events. If I absolutely position the element, it works.

It looks like once the mousedown happens, that's it - no more events.
William, probably not related to this bug.
Please, file a new bug, and preferably with a testcase that shows the bug, ok?
Assignee: nobody → events
QA Contact: general → ian
Assignee: events → nobody
QA Contact: ian → events
You need to log in before you can comment on or make changes to this bug.