-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
The domConverter
should not modify DOM structure
#4371
Comments
This is why |
Creating DOM tree itself is not a problem here and it could stay in a |
All what data processors do is to create new DOM from view. Data processors do not reuse any nodes: |
Completely agree. |
To make it clear I also agree that |
Agree 👍 Renaming could be easier, but probably splitting some methods will be needed to.
Yes, I agree that it should stay inside This is described in more details in https://github.com/ckeditor/ckeditor5-engine/issues/1451#issuecomment-401356437. |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
Extracted from https://github.com/ckeditor/ckeditor5-engine/issues/1451#issuecomment-401356437:
and also mentioned earlier in https://github.com/ckeditor/ckeditor5-engine/issues/1125#issuecomment-332790058:
The main issue here is that even though only
renderer
should be responsible for updating DOM structure (apart from external actions ofc), in some casesdomConverter
also modifies it before rendering which looks like rather unpleasant side effect, may be confusing and hard to debug and mixes responsibilities ofrenderer
anddomConverter
. It may lead to some hard to understand cases too - #4370.As we have introduced some
renderer
improvements, especially deep changes rendering (#1417), maybe such mechanism is not needed anymore anddomConverter
could always create new DOM elements. Therenderer
itself will detect and prevent rerendering of similar elements.Or maybe there are other ideas how we can improve this situation? cc @Reinmar @pjasiun @scofalik
The text was updated successfully, but these errors were encountered: