You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These algorithms take a manifest out parameter that's passed in in the overall processing a manifest algorithm. https://w3c.github.io/manifest/#dfn-processing-a-manifest
I'm a bit surprised there doesn't seem to be anywhere that defaults it to the document URL or declares it invalid and unable to be installed or something.
@alancutter I'm not sure I understand what you mean by "manifest out parameter", but I see that step 5 of that algorithm appears to initialise manifest with a default ordered map in which the value of the start_url member is set to the document URL.
So I guess that answers my question. If no start_url is provided, the default id is the document URL (i.e. the web page from which the manifest was linked). That means that the id will be different depending on which page of a mutli-page web application the app was installed from.
(It's a shame this further couples manifest processing with a document URL instead of the manifest URL, which prevents installation from external sources like app stores, mobile device management services and digital signage platforms, but I guess that ship has already sailed).
If no
id
orstart_url
member is provided, what is the value of the processedid
?As I understand it,
id
is essentially meant to default tostart_url
, but what doesstart_url
default to?The
start_url
algorithm says:The
id
algorithm says:but then what?
I'm probably just not understanding the way the algorithms are written, does return mean something other than "stop executing the algorithm"?
The text was updated successfully, but these errors were encountered: