WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
98439
MutationRecord oldValue should be null when *OldValue is false
https://bugs.webkit.org/show_bug.cgi?id=98439
Summary
MutationRecord oldValue should be null when *OldValue is false
Erik Arvidsson
Reported
2012-10-04 12:49:33 PDT
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
Comment 1
2012-10-04 14:19:05 PDT
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).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug