W3C home > Mailing lists > Public > public-web-perf@w3.org > April 2012

Re: TPAC 2011 Web Performance WG 2011-11-01

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 23 Apr 2012 12:35:06 -0400
Message-ID: <4F9584BA.1050801@mit.edu>
To: Sreeram Ramachandran <sreeram@google.com>
CC: public-web-perf@w3.org
On 4/23/12 12:11 PM, Sreeram Ramachandran wrote:
> 4. Okay, maybe the "window" object is live-updating.

Yes, it is.

> How about if I "store" the document object after step 1 (and before step 2) and then
> try to use it after step 2? Nope. "checkdoc" shows me C too.

That's because your "checkdoc" function is broken.  It's using 
childdoc.location, which is defined to forward to the document's window, 
which does of course have a different location now.  Try using 
childdoc.documentElement.textContent or 
childdoc.documentElement.innerHTML to examine the contents of the 
document or childdoc.documentURI to get the actual URI of the document.

-Boris
Received on Monday, 23 April 2012 16:35:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2012 16:35:42 GMT