[Webkit-unassigned] [Bug 8191] New: DOMAttrModified mutation event support
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Tue Apr 4 21:59:42 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=8191
Summary: DOMAttrModified mutation event support
Product: WebKit
Version: 416.x
Platform: Macintosh
URL: http://www.gtalbot.org/DHTMLSection/DOM2MutationEvents.h
tml
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: browserbugs at gtalbot.org
DOMAttrModified mutation event is not supported by Safari 2.02 (416.13). Opera
7.2+ and Mozilla-based browsers support it.
Steps to reproduce:
1- Load the provided URL
2- Hover the mouse over the Chinese flag
Expected results:
An alert box should report this text along with the related/correspondent event
properties:
"The attribute (evt.attrName) " + evt.attrName + " node of the " +
evt.target.nodeName + " identified as " + evt.target.id + " has been modified.
This alert proves that the current browser supports the " + evt.type + "
mutation event. The type of change which triggered the DOMAttrModified event
(evt.attrChange) is " + evt.attrChange + " and the name of the attribute
(evt.attrName) is " + evt.attrName + ".\nThe previous value was \"" +
evt.prevValue + "\"\nand its new value is \"" + evt.newValue + "\"\nThe
relatedNode (evt.relatedNode) property value is " + evt.relatedNode + " and the
relatedNode nodeName (evt.relatedNode.nodeName) is " + evt.relatedNode.nodeName
which would output as
"The attribute (evt.attrName) src node of the IMG identified as idMediumChina
has been modified. This alert proves that the current browser supports the
DOMAttrModified mutation event. The type of change which triggered the
DOMAttrModified event (evt.attrChange) is 1 and the name of the attribute
(evt.attrName) is src.
The previous value was
"http://www.gtalbot.org/GRAPHICS/PNG/MediumChinaFlagMouseOut.png"
and its new value is
"http://www.gtalbot.org/GRAPHICS/PNG/MediumChinaFlagMouseOver.png"
The relatedNode (evt.relatedNode) property value is [object Attr] and the
relatedNode nodeName (evt.relatedNode.nodeName) is src
Another alert should popup for the switch back of the src of the image (since
this is a rollover image).
I searched for a duplicate and couldn't find any.
Reference:
http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-MutationEvent
--
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