I don't recall encountering these issues. What framework was that on?
Any framework, if you _replace_ DOM elements, not just modify their attributes.