javascript - return value of XMLHttpRequest is not same as manually observing the website -


as title says - i'm not able retrieve same data seeing.

i'm trying parse/load external website using xmlhttprequest (just checking if few values exists). when observe website using chrome f12 "elements" tab part of html looks following:

<li class="mail">   <a href="my-stuff">my stuff<span class="notification">new</span></a> </li> 

if right click browser , press "view source" instead see this:

<li class="mail">   <a href="my-stuff">my stuff</a> </li> 

note lack of span-element. same retrieved xmlhttprequest.

why , there way access first html-snippet? since that's thing i'm trying access here. i'm guessing it's created after page load or (via javascript), how can access instead?

thank you!

(i can't provide webpage i'm testing on)

edit: i'm doing chrome extension. there way load page in background (not show it) , wait javascripts execute on page , "final" generated html?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -