-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Associate a web app with a manifest #17
Comments
We could also use <html manifest='manifest.json'> and have the UA reading the file as a JSON file and if not working, reading it as an appcache manifest. That would work except that if people use a JSON file and the UA doesn't know about application manifest, things wouldn't work. If UAs commit to implement it, we could solve that problem quickly. I think we should add this to the specification very quickly. It is an incredible advantage to the manifest format and would allow some new Web APIs to be based on this manifest instead of adding tons of stuff in |
Though that would be the ideal solution, I'm not sure it will fly: it would break compatibility with legacy user agents and user agent's that may choose not to support this for a while (so you could only really add the attribute dynamically with JS, after doing feature detection or browser sniffing) - or you would need to do content negotiation on the server, which is also painful. About adding it to the spec, I agree we should add this quickly - I'll do it in the next few days. Here are some potential attribute names: appconfig | config | appmanifest | details | appdetails. 🌟 More suggestions welcomed!!! 🌟 As we are extending HTML, I'm wondering if we need to do this with coordination with the HTML/WHATWG as an extension spec? @darobin might know, but we can cross that bridge when we get to it. |
work started... |
It was suggested on twitter that we call the attribute "app". Any thoughts? |
I think it would send the wrong message. What about using <link> ? |
I need to check the processing model of link and implications of using it. I think it would be good to get @hsivonen to provide some guidance here also. |
Added `appconfig` attribute to html element (closes #17)
Is this closed for discussion? appconfig just makes things confusing. The web runtime is clearly using the term 'manifest' everywhere, including this spec, and the conventional manifest.webapp or manifest.json filename used by web apps. In this context appmanifest would be better no?
seems very odd, not to mention that the manifest is not a configuration, but a declaration of what this application is. A configuration is something that decides some imperative behaviour of the program and is open to end-user customization to affect the behaviour of the program. |
I agree. |
The problem is that people keep confusing this with appcache manifest. |
Taking the risk to sound like a broken record, doing <link re='manifest' href='manifest.webapp'> could make everybody happy. |
What we are missing are the technical arguments/implications for one or the other. What are the pros and cons of each approach (using an immutable attribute vs using link)? |
True. I tried to come up with more alternatives, but ended up finding |
So, link is defined as:
So fits really nicely. Things I really like:
Will provide more thoughts on this a bit later, but the above is a start. |
Ok, I've started working on adding |
If the manifest includes NavigationController-ish stuff so that resource loads depend on the manifest, an attribute on the root element should be used for the same reason that the current app cache uses an attribute on the root element instead of |
I personally really like using tags for such things. Still, if:
@hsivonen could you please provide the reference to the constraint you mentioned? |
I don't think the same restrictions apply as in app cache, which is why we went from having an attribute to having the link element. |
In light of recent bugs #187 #186 #188, it seems that
|
* Formalizes using link element as the solution (closes #17) * Banned media attribute. At least, we say that it's not considered during processing. (closes #186) * Added text about when events need to be fired (closes #188) * The fetch part of the specification now mentions the crossorigin attribute (closes #195) * fixed copy/pasta error relating to icons/orientation (closes #198) * fixed a whole bunch of editorial issues.
There is currently no declarative means for an web application to associate itself with a manifest. This would be good for autodiscovery by the UA, for search engines, and for when javascript is disabled.
Something like:
The text was updated successfully, but these errors were encountered: