Hacker News new | ask | show | jobs
by burnbabyburn 3476 days ago
Couldn't you reconstruct the source from the internal dom representation anyway?
1 comments

No. The parser corrects and changes the source to make the DOM.

So it is impossible to find errors usually. So things like:

    <p><div> </p></div>
the parser will correct, and therefore the DOM will be correct. But what it does to fix this may break your site. I often found the CSS would be screwed up for many reasons (rules don't match DOM structure -- due to bugs all over our codebase)
Also, changes made by client-side JS.
oh right.