<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7684</bug_id>
          
          <creation_ts>2009-09-21 17:00:38 +0000</creation_ts>
          <short_desc>ApplicationCache object can be empty but not an application cache</short_desc>
          <delta_ts>2010-10-04 14:45:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/Overview.html#appcache</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikunj Mehta">nikunj.mehta</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27410</commentid>
    <comment_count>0</comment_count>
    <who name="Nikunj Mehta">nikunj.mehta</who>
    <bug_when>2009-09-21 17:00:38 +0000</bug_when>
    <thetext>Overview:
By definition an application cache has to have at least one resource. However, when an ApplicationCache object is fetched it could be empty, i.e., not have any resources.

Steps to reproduce:

1. Create an HTML document without a manifest=&quot;&quot; attribute
2. In an onload script, get the value of window.applicationCache 

Actual results:

1. an ApplicationCache object with no items

The spec text containing definition of application cache should be changed to allow empty application cache.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27787</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-29 07:44:16 +0000</bug_when>
    <thetext>There&apos;s no application cache in that example. The ApplicationCache object would have its status attribute set to UNCACHED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27875</commentid>
    <comment_count>2</comment_count>
    <who name="Nikunj Mehta">nikunj.mehta</who>
    <bug_when>2009-09-29 16:17:25 +0000</bug_when>
    <thetext>A result of application cache being distinct from ApplicationCache</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>