Closed
Bug 273798
Opened 20 years ago
Closed 11 years ago
Dispatching Mutation Event DOMAttrModified is implemented in several places
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Unassigned)
References
Details
Attachments
(2 obsolete files)
At the moment dispatching DOMAttrModified is implemented in 6 places, twice in GenericElement, twice in XULElement and once in HTMLElement and SVGElement. There could be one (or perhaps two, REMOVAL may need its own) static method in nsGenericElement to implement it once and properly. Bug 231676 is another solution for this, but it needs changes to document observer.
Reporter | ||
Comment 1•20 years ago
|
||
Something like this.
Reporter | ||
Comment 2•20 years ago
|
||
This adds (static) nsGenericElement::DispatchDOMAttrModified. It is used in every place, where DOMAttrModied is created. This also fixes few bugs. REMOVAL is now dispatched after the attribute has been removed and the relatedNode is the correct nsIDOMAttr - now also the namespaced attributes should work.
Attachment #168512 -
Attachment is obsolete: true
Reporter | ||
Comment 3•20 years ago
|
||
As Jonas said in Bug 232009 "Currently the attribute-node can be compleatly unaware that it no longer is an attribute on the element." Have to fix that too, but it is probably separate bug.
Status: NEW → ASSIGNED
The absolutly best solution would be to fix bug 231676. However this is a step in the right direction.
Comment 5•18 years ago
|
||
Should the patch be reviewed?
Reporter | ||
Comment 6•18 years ago
|
||
(In reply to comment #5) > Should the patch be reviewed? > Ah, no. This is old. Way too old.
Reporter | ||
Updated•18 years ago
|
Attachment #168983 -
Attachment is obsolete: true
Comment 7•18 years ago
|
||
At this point we're down to three dispatchers of DOMAttrModified: nsXULElement::UnsetAttr nsGenericElement::SetAttrAndNotify nsGenericElement::UnsetAttr I believe we wanted to merge the latter two by having an AfterSetAttr method or something. At least sicking's mentioned something like that. nsXULElement::UnsetAttr should just call up into the superclass more somehow.
Updated•15 years ago
|
QA Contact: ian → events
Reporter | ||
Comment 9•11 years ago
|
||
this was fixed long ago.
Assignee: bugs → nobody
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•