I have some code that modifies a <div> element. I did a view source before and after the DOM element was modified. And I saw with my two eyes that the DOM was modified as I wanted. When I diff the sources, they are identical. I guess when doing View Source it will show the page as it was downloaded...