[whatwg] Online whitelist problem
Hi, one problem with the online whitelist in cache manifest files is that it matches on whole URLs only. This makes embedding for example Google Maps into a web app difficult, since you want to allow urls like http://maps.google.com/maps/vp?spn=0.040888,0.085831z=13key=ABQIzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBAvp=37.4419,-122.1419 http://maps.google.com/maps?file=apiv=2key=ABQIzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA http://mt0.google.com/mt?n=404v=ap.74hl=svx=1316y=3176zoom=4s=Gali http://mt1.google.com/mt?n=404v=ap.74hl=svx=1315y=3175zoom=4s= http://mt1.google.com/mt?n=404v=ap.74hl=svx=1315y=3177zoom=4s=Ga http://mt2.google.com/mt?n=404v=ap.74hl=svx=1316y=3175zoom=4s=Gal http://mt2.google.com/mt?n=404v=ap.74hl=svx=1316y=3177zoom=4s=Galil http://mt3.google.com/mt?n=404v=ap.74hl=svx=1315y=3176zoom=4s=G and it's especially a problem since you don't know beforehand what URLs to allow. Maybe the whitelist needs to be extended to do host matching or maybe we need another solution. Anders
Re: [whatwg] ApplicationCache add/remove with invalid URLs
On 17 apr 2008, at 22.23, Geoffrey Garen wrote: I think an exception should be thrown when ApplicationCache add/ remove is called with invalid URLs. Can you be more specific about what you mean by invalid? URL not found in the cache? Malformed URL? Something else? Geoff Invalid as in not syntactically valid. Anders
[whatwg] ApplicationCache add/remove with invalid URLs
Hi, I think an exception should be thrown when ApplicationCache add/remove is called with invalid URLs. Something like If uri is not valid, raise an SYNTAX_ERR exception and abort these steps. Anders
[whatwg] ApplicationCache add/remove and relative URIs
The spec for the add and remove ApplicationCache methods does not say what to do about how relative URIs should be resolved. I think it would be most intuitive to resolve them agains't the URI o the document that the ApplicationCache object is associated with. Comments? Anders
[whatwg] Clarification/typo in ApplicationCache's item method
From section 4.6.6: The item(index) method must return the dynamic entries with index index from the application cache, if one is associated with theApplicationCache object. entries should be entry. Also, it should be clarified that the item returns the uri of the entry. Anders
[whatwg] Clarifications needed in application cache selection algorithm section
If there is already an application cache identified by this manifest URI, and that application cache contains a resource with the URI of the manifest, and that resource is categorised as a manifest, then: store the resource in the matching cache with the most up to date version, categorised as an implicit entry, associate the Document with that cache, invoke the application cache update process, and abort these steps. as well as If there is already an application cache identified by this manifest URI, then that application cache does not yet contain a resource with the URI of the manifest, or it does but that resource is not yet categorised as a manifest: store the resource in that cache, categorised as an implicit entry (replacing the file's previous contents if it was already in the cache, but not removing any other categories it might have), and abort these steps. need to clarify that the cache needs to be the most recently updated cache in the group. Anders
[whatwg] Typo in section 4.6.2 Application Caches
The text: A browsing context can be associated with an application cache. A child browsing context is always associated with the same browsing context as its parent browsing context, if any. should be: A browsing context can be associated with an application cache. A child browsing context is always associated with the same *application cache* as its parent browsing context, if any. Anders
[whatwg] SQLResultSet rows property
Hello, according to http://www.whatwg.org/specs/web-apps/current-work/#sqlresultset the rows attribute should return a _native_ array of objects. In the case of JavaScript, does that mean a native JavaScript Array object or another object which can be indexed as an array? If it's the former, then doing something like var rows = result.rows; rows[0] = null; would be possible, which seems strange, unless result.rows returns a new array every time (something that seems pretty bad for performance). In any case I'd like some clarification on this - and it would be great to have the spec clarify it as well :) Thanks, Anders