When checking answer edit history in Stack Overflow, the changes in the code snippet are displayed correctly, but on pressing "Run Code Snippet" The first line was not being recognized by the snippet and it appeared as text in the output. And on inspecting the code, I saw that the snippet was just running the old version of the code and not reflecting the changes.
This is a screenshot of url : https://stackoverflow.com/posts/45006822/revisions
Like here the change in the first line of the HTML, comes as text. And the code executed by the snippet is actually the red one.
+1
. I didn't see the post here after you delete it on MSE