Re: [w3ctag/design-reviews] Add `id` member to web application manifest spec (#668)

> What constitutes a valid ID? Anything goes, or does it have to be limited to a specific subset of unicode?

It goes into the URL parser, so it's determined by the URL spec. 

> What are good practices for an ID? (e.g. Don't use obvious words, like 'test')

"test" would be fine, I think. The IDs are resolved against the start URL, short strings are actually good.

Things that are bad: 

 * relative URLS "./foo", because you might end up with a new ID for every navigation if the start_url is missing. 
 * URLs like `"id": "file://foo"` or other remote origins, as those will fail. 



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/668#issuecomment-923636689

Received on Tuesday, 21 September 2021 05:23:32 UTC