w3c / lpf

W3C Lightweight Packaging Format
https://w3c.github.io/lpf
Other
5 stars 4 forks source link

Replace relative-url strings by relative-url-with-fragment #19

Open llemeurfr opened 3 years ago

llemeurfr commented 3 years ago

The spec states "Contents within the Package MUST reference these resources via relative-URL strings [url].". A relative-URL string cannot contain a fragment identifier.

On the other side the EPUB 3.3 OCF specification states that "Files within the OCF Abstract Container MUST reference each other via relative-URL-with-fragment strings."

See relative-URL-with-fragment strings

We should certainly allow fragment ids in relative URLs. To be validated.

Warning: A relative-URL string can be a path-absolute-URL string. We need to define how path absolute URLs are dereferenced. Same problem as in EPUB 3.3.

iherman commented 3 years ago

Should this be marked as an errata item? (I believe it should...)

iherman commented 3 years ago

@wareid ?