Changeset: Add TODO comments for issues noticed

This commit is contained in:
Richard Hansen 2021-11-19 01:10:04 -05:00
parent f1eb7a25a6
commit 2fc06a0884
3 changed files with 10 additions and 0 deletions

View file

@ -383,6 +383,8 @@ PadDiff.prototype._createDeletionChangeset = function (cs, startAText, apool) {
const oldValue = oldAttribs.get(key);
if (oldValue !== value) backAttribs.set(key, oldValue);
}
// TODO: backAttribs does not restore removed attributes (it is missing attributes that
// are in oldAttribs but not in attribs). I don't know if that is intentional.
return backAttribs.toString();
});