[Webkit-unassigned] [Bug 93787] New: DOMCharacterDataModified incorrectly firing for innerHTML changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Aug 12 14:04:35 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=93787
Summary: DOMCharacterDataModified incorrectly firing for
innerHTML changes
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: http://jsfiddle.net/newtang/kysTm/15/
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Events
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jonnew at gmail.com
To reproduce:
1. Have a node that contains only text. Add a DOMCharacterDataModified event listener
2. Change the node's contents using innerHTML
What is the expected result?
DOMCharacterDataModified does not fire. The W3 spec (http://www.w3.org/TR/DOM-Level-2-Events/events.html) says, "Fired after CharacterData within a node has been modified but the node itself has not been inserted or deleted." I didn't think innerHTML would adjust the existing textNode; I thought it would replace it with a completely different node.
What happens instead?
DOMCharacterDataModified does fire.
I made this jsFiddle to demonstrate: http://jsfiddle.net/newtang/kysTm/15/
and created this StackOverflow question:
http://stackoverflow.com/questions/6528511/domcharacterdatamodified-not-firing-consistently-across-firefox-and-chrome-who-i
It appears that Firefox is handling this situation correctly, but ultimately, I'm more interested in consistency across the browsers.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list