What steps will reproduce the problem?
1. Add prettyPrint() fn call to onLoad event.
2. Add new elemenet with source code in any supported language.
3. Call prettyPrint() func again.
What is the expected output?
Prettify only added element.
What do you see instead?
Rendered appearence of old elements with code doesn't change. However, all
pretify tags inside this elements are doubled. This is really annoying when you
do many AJAX requests adding new sources to the page because you get not so
clean markup as it was.
What version are you using?
Latest.
On what browser?
Doesn't matter.
Additional information.
I think, pretified elements should be marked and ignored when calling
prettyPrint() twice.
As a workaround I sugest users with same problem just to remove "prettyprint"
mark from code element's class after first call to prettyPrint(). But this is
not a good solution as you have to enumerate this elements in second loop too.
Original issue reported on code.google.com by ins...@gmail.com on 24 Jan 2012 at 6:50
Original issue reported on code.google.com by
ins...@gmail.com
on 24 Jan 2012 at 6:50