reckart opened a new issue #120:
URL: https://github.com/apache/incubator-annotator/issues/120


   It appears that when adding/removing a highlight, empty text nodes may be 
added to the DOM. This again may cause subsequent highlighting operations to 
add additional highlight elements around the empty text nodes. The more 
highlight there are and the more often they added/removed/re-rendered, the more 
highlight elements get added to the DOM every time.
   
   Calling `normalize()` on the root element to which the annotators is applied 
after removing highlights seems to fix this problem. It would be nice maybe 
though if Annotator was smart enough to clean up empty text nodes itself 
without having user code to worry about it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@annotator.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to