Re: sendBeacon and being synchronous

On 11/11/13 10:08 PM, Doug Turner wrote:
> For example, section 4.3.12 requires us to serialize the document into a string.  We need to do this before returning so that we can throw QuotaExceededError if the size of the document is greater than 10kb.  This means that we’re going to have to walk the DOM writing out a string for up to 10kb in length before control is returned to the script.

One other note here: Is the limit 10240 bytes (which is what the spec 
says right now, since it says "KB") or 10000 bytes?  I recommend just 
explicitly writing out the number of bytes to check against.

-Boris

Received on Tuesday, 12 November 2013 03:16:41 UTC