Bug 98439
| Summary: | MutationRecord oldValue should be null when *OldValue is false | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Erik Arvidsson <arv> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | adamk, rafaelw |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://dom.spec.whatwg.org/#mutationrecord | ||
Erik Arvidsson
For {characterData: true} oldValue should be null and not ''
var text = document.createTextNode('abc');
var observer = new WebKitMutationObserver(function() {});
observer.observe(text, {
characterData: true
});
text.data = 'def';
var records = observer.takeRecords();
shouldBeNull('records[0].attributeName')
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adam Klein
I can't reproduce this problem. Your test case doesn't actually test oldValue; I think if you do, you'll find it is null (as oldValue is already properly annotated in MutationRecord.idl).