Hacker News new | ask | show | jobs
by monk_e_boy 3475 days ago
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)
2 comments

Also, changes made by client-side JS.
oh right.