This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7722 - Relationship between
Summary: Relationship between
Status: VERIFIED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/Overview...
Whiteboard:
Keywords: NoReply
Depends on:
Blocks:
 
Reported: 2009-09-24 17:11 UTC by Nikunj Mehta
Modified: 2010-10-04 14:47 UTC (History)
4 users (show)

See Also:


Attachments

Description Nikunj Mehta 2009-09-24 17:11:12 UTC
[[
A Document initially is not associated with an application cache, but can become associated with one ...

A cache host is a Document or a SharedWorkerGlobalScope object. A cache host can be associated with an application cache.

Each cache host has an associated ApplicationCache object.
]]

While a Document may not be associated with an application cache, Window always has an associated ApplicationCache object.

What is the exact relationship between Document, Window/SharedWorkerGlobalScope, and ApplicationCache? How does ApplicationCache relate to an application cache?

This part of the offline Web apps definition must be strengthened to avoid apparent contradiction.
Comment 1 Ian 'Hixie' Hickson 2009-09-29 09:57:31 UTC
There's a 1:1:1 relationship betweem Document, Window, and ApplicationCache.

There's a 1:1 relationship between SharedWorkerGlobalScope and ApplicationCache.


> How does ApplicationCache relate to an application cache?

It exposes one if there is one, or says there isn't otherwise.


I don't really understand the problem. Would it help maybe to say that ApplicationCache objects are present even if the cache host has no appcache?
Comment 2 Nikunj Mehta 2009-09-29 16:19:28 UTC
It would be immensely helpful to say that an ApplicationCache is distinct from application caches, and that a cache host will have an ApplicationCache attribute even if it is not associated with an application cache.
Comment 3 Ian 'Hixie' Hickson 2009-09-30 08:26:35 UTC
Ok, added a note.