Closed iherman closed 5 years ago
I now find mention of URLs in the WP spec in 2.6.3.3. inside this section there are links to the whatwg spec. But there is also in 2.6.3.2.3 a reference "url" jumping to https://w3c.github.io/wpub/#bib-url, plus some direct links to https://url.spec.whatwg.org/#absolute-url-string in the spec.
What should we use in the LPF spec then? a link to WP 2.6.3.3, to a [url] in the bibliography section of the LPF spec or directly to https://url.spec.whatwg.org/#relative-url-string?
In my view, we should refer to 2.6.3.3., which also covers the way relative URIs are handled within embedded manifests, and leave it at that. If there are inconsistencies, the editors of WPUB should then be responsible:-)
The WP spec speaks about URLs, the LPF spec about IRIs (like OCF did). IRIs are an interesting concept but only URLs are used in real life. I propose to be consistent here and use the term URL as in the WP spec.
This issue was discussed in a meeting.
RESOLVED: (1) deep link to WP, (2) raise an issue on absolutization in the canonicalization, and (3) discuss origin vs. packages (at F2F)
draft updated via 68f698a77d567a75a216a10f63abc0948a734f55.
Open question about where to express issue with absolutization.
I wonder whether the references and section should not rely on the WhatWG spec rather than the RFC-s. That is what most of the W3C specs do these days. Maybe more importantly, this is what is done in the WPUB §3.1.7; we should be consistent within a family of specifications.
I actually wonder whether we should not mostly refer to §3.1.7 above. We would then have one place in our specs where this could be amended if needed. The LPF spec would then slightly extend that section saying that the rules described there are for the relative URL-s for URL-s appearing in the manifest, but that same rules should apply to references among constituent files.
Note that the section refers to the base URI of the manifest; I think this is unnecessary. The fact that the
manifest.jsonld
file, if present, must appear in the Root Directory (which is already the case), plus the rules defined in the WPUB document covers that case. On the other hand, if there is anindex.html
file the author may decide to place the manifest file somewhere else (or embed it), in which case this paragraph is not relevant.