I have a scenario where I use Httpclient to get the HTML repsonse of a page which is same as ViewSouce that we right click and get. There are certains tags which has
<img alt="abc" /> and other tags
<img alt="def" src="/images/xyz.jpg" />
These are the tags I see through View Source.
However when i use the firebug inspect element I see a valid url for each image.
for example above
<img alt="abc" />
looks like
<img alt="abc" src="/images/fgh.jpg" />
What is happening? I assume that view source gets the code before the images a re loaded so the urls are missing. I know im wrong…but i dont know a reason for this. Can someone help me. I want to get the urls for all the images as i see throught the firebug inspect element. Thanks.
View source shows the HTML provided by the webserver, and Firebug inspector show the “source” after being rendered by the browser: that means that if something has changed in the client (for example using javascript) you can see the changes through the Firebug inspector, but not through the “view-source” option.