Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeDelta: empty AttributeDeltas should not be added to batch #4019

Closed
scofalik opened this issue Mar 17, 2017 · 0 comments · Fixed by ckeditor/ckeditor5-engine#876
Closed
Assignees
Labels
package:engine type:bug This issue reports a buggy (incorrect) behavior.
Milestone

Comments

@scofalik
Copy link
Contributor

batch.setAttribute() and batch.removeAttribute() checks passed range/element and applies changes only where they are needed. However if element already has given value for given attribute, then no operation is applied and empty AttributeDelta instance is added to the batch (same when all items in a range have that value for that attribute).

@scofalik scofalik self-assigned this Mar 17, 2017
Reinmar referenced this issue in ckeditor/ckeditor5-engine Mar 17, 2017
Fix: Empty `AttributeDelta` should not be added to batch. Closes #875.
@mlewand mlewand transferred this issue from ckeditor/ckeditor5-engine Oct 9, 2019
@mlewand mlewand added this to the iteration 9 milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:bug This issue reports a buggy (incorrect) behavior. package:engine labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:engine type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants