[Webkit-unassigned] [Bug 98438] New: MutationRecord attributeName should be null for non attribute changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 4 12:26:32 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=98438
Summary: MutationRecord attributeName should be null for non
attribute changes
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
CC: rafaelw at chromium.org, adamk at chromium.org
We return '' instead of null for atributeName when the type is characterData (I didn't try childNodes but I assume we have the same issue there and other places).
Steps to reproduce
var text = document.createTextNode('abc');
var observer = new WebKitMutationObserver(function() {});
observer.observe(text, {
characterData: true
});
text.data = 'def';
var records = observer.takeRecords();
shouldBeNull('record[0].attributeName');
--
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