Closed
Bug 230878
Opened 21 years ago
Closed 21 years ago
changing broadcaster attribute does not fire any event!
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 230445
People
(Reporter: manelix2000, Assigned: hyatt)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.5) Gecko/20031007 If you change 2 times the attribute of a broadcaster to the same value, the first time events are fired but the second one doesn't fire any event! Reproducible: Always Steps to Reproduce: try this testcase: --------- XUL FILE ------------- <?xml version="1.0" encoding="ISO-8859-1"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <broadcasterset> <broadcaster id="broadcast" style="color: black"/> </broadcasterset> <label value="Test"> <observes element="broadcast" attribute="style" onbroadcast="alert('Color changed');"/> </label> <button label="Observer" onclick="document.getElementById ('broadcast').setAttribute('style','color: red');"/> </window>
Comment 1•21 years ago
|
||
I'm not that familiar with XUL, but I wouldn't expect redundant attribute changes to fire change events; they don't in many other languages (HTML, to name one).
Reporter | ||
Comment 2•21 years ago
|
||
they are not change events, are broadcaster events! And why up to mozilla 1.4 the events were fired? why this change in mozilla 1.5?
Comment 3•21 years ago
|
||
It worked up to 1.4 due to a bug in XUL -- it fired both change and broadcast events even when no change happened. That bug has been fixed. See dup for more information. *** This bug has been marked as a duplicate of 230445 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•