04.02.2013 Views

HTML 5 Draft Standard - 30 July 2009 - Huihoo

HTML 5 Draft Standard - 30 July 2009 - Huihoo

HTML 5 Draft Standard - 30 July 2009 - Huihoo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

680<br />

};<br />

void update();<br />

void swapCache();<br />

// events<br />

attribute Function onchecking;<br />

attribute Function onerror;<br />

attribute Function onnoupdate;<br />

attribute Function ondownloading;<br />

attribute Function onprogress;<br />

attribute Function onupdateready;<br />

attribute Function oncached;<br />

attribute Function onobsolete;<br />

cache = window . applicationCache<br />

(In a window.) Returns the ApplicationCache object that applies to the active<br />

document (page 608) of that Window.<br />

cache = self . applicationCache<br />

(In a shared worker.) Returns the ApplicationCache object that applies to the<br />

current shared worker.<br />

cache . status<br />

Returns the current status of the application cache, as given by the constants<br />

defined below.<br />

cache . update()<br />

Invokes the application cache update process.<br />

Throws an INVALID_ACCESS_ERR exception if there is no application cache to update.<br />

cache . swapCache()<br />

Switches to the most recent application cache, if there is a newer one. If there isn't,<br />

throws an INVALID_ACCESS_ERR exception.<br />

Objects implementing the ApplicationCache interface must also implement the EventTarget<br />

interface.<br />

There is a one-to-one mapping from cache hosts (page 662) to ApplicationCache objects. The<br />

applicationCache attribute on Window objects must return the ApplicationCache object<br />

associated with the Window object's active document (page 608). The applicationCache<br />

attribute on SharedWorkerGlobalScope objects must return the ApplicationCache object<br />

associated with the worker.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!