3 ms·
Couldn't you reconstruct the source from the internal dom representation anyway?
by burnbabyburn 10y ago
Couldn't you reconstruct the source from the internal dom representation anyway?
- monk_e_boy 10y agoNo. 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)
- burnbabyburn 10y agooh right.
- OJFord 10y agoAlso, changes made by client-side JS.