Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Always update attributes of reused elements while rendering #1568

Merged
merged 2 commits into from
Oct 2, 2018
Merged

Conversation

f1ames
Copy link
Contributor

@f1ames f1ames commented Oct 2, 2018

Suggested merge commit message (convention)

Other: Always update attributes of reused elements while rendering. Closes ckeditor/ckeditor5#4430.


Additional information

See https://github.com/ckeditor/ckeditor5-engine/issues/1560#issuecomment-426218452.

The elements reusing during rendering was implemented mainly to prevent breaking composition. I have checked (with https://codepen.io/f1ames/pen/PyPExr) if updating attributes of the element in which composition takes place can influence composition in any negative way, but it seems to be working fine for such cases.

@coveralls
Copy link

coveralls commented Oct 2, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 3a2854e on t/1560-c into 6619a1f on master.

// to the DOM, so we need to mark it here to make sure its attributes gets updated. See #1427 for more
// detailed case study.
// Also there are cases where replaced element can be removed from view structure and then has
// its attributes changed. In such cases it si not present in `markedAttributes` and may be the same
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si

@pjasiun pjasiun merged commit 9b95a8a into master Oct 2, 2018
@pjasiun pjasiun deleted the t/1560-c branch October 2, 2018 12:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

updateElementMappings does not refresh attributes
3 participants