Open danielweck opened 2 years ago
The expectation is clear with the test that has a specific XML content type:
... but conversely the "plain" application/xml
test is problematic because XHTML itself is XML, so the description of the expected outcome needs to be clarified:
More specifically:
If the reading system does not support XML, it should display the HTML.
Similarly with the JSON test, I struggle to understand the criteria for fail vs. pass:
Let's say my reading system claims to support application/json
by displaying its raw contents in the publication viewport, thereby ignoring the fallback XHTML. Is that a pass? In the absence of clear content processing model for JSON, it's hard to assert success.
(Naturally, in the real world I would expect most reading systems to follow the fallback chain to XHTML, but that's beside the point)
see related discussion #245
Regarding _pub-foreignbad-fallback what happens is that Thorium open system dialog and ask where to save the file. I find it's a useful feature :)
I consider it "n/a" (no fallback is needed as access to the file is provided).
Same for _pub-foreignjson-spine and _pub-foreignxml-spine
https://github.com/w3c/epub-tests/blob/9a023cea6d7a34fdce86b28e8f443a8c913f0fd5/tests/pub-foreign_bad-fallback/EPUB/package.opf#L20-L27
In this case, the resulting reading order (i.e. computed spine, once the fallback chain is resolved) is empty if the reading system follows the cascade of unsupported media types. In some reading systems this may cause a crash / broken user interface, in others this may result in an empty viewport ... what consitutes a pass vs. fail?