Hacker News new | ask | show | jobs
by joatmon-snoo 3035 days ago
> view-source should always represent any non-redirected HTTP response

Not the grandfather, but generally in browsers you have two versions of HTML "source" - the canonical source, the stuff pulled down over HTTP, and the repaired source, the version that actually gets rendered.

I'm unfamiliar with Nokogiri, but I suspect that from context, it doesn't repair HTML in the same way that browsers do.

1 comments

But it should be the same as "view source" right? The post replied to claims otherwise.
It sounds like you are confusing View Source and the live developer tools DOM view.