Comments (3)
The expectation is clear with the test that has a specific XML content type:
epub-tests/tests/pub-foreign_xml-suffix-spine/EPUB/package.opf
Lines 20 to 27 in 9a023ce
... 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:
epub-tests/tests/pub-foreign_xml-spine/EPUB/package.opf
Lines 20 to 27 in 9a023ce
More specifically:
If the reading system does not support XML, it should display the HTML.
epub-tests/tests/pub-foreign_xml-spine/EPUB/package.opf
Lines 8 to 11 in 9a023ce
from epub-tests.
Similarly with the JSON test, I struggle to understand the criteria for fail vs. pass:
epub-tests/tests/pub-foreign_json-spine/EPUB/package.opf
Lines 20 to 27 in 9a023ce
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)
from epub-tests.
see related discussion #245
Regarding pub-foreign_bad-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-foreign_json-spine and pub-foreign_xml-spine
from epub-tests.
Related Issues (20)
- Taking care of restrictions on container-constrained scripts
- Test OCF containers with ZIP64 extensions defined as "Version 1"
- Completing Loading the media overlay tests
- Is test pkg-lang_but_not_content checking package document language? HOT 6
- pub-external-links_consent on systems without email software HOT 3
- Differentiate non-applicable tests from untested tests in the report HOT 5
- Errors when ingesting these files HOT 11
- about "-epub-text-combine-horizontal" property HOT 2
- Is lack of fallback a feature or a bug? HOT 2
- Test categorization HOT 1
- mol-navigation references wrong audio file HOT 2
- mol-audio-no-clipend confusing instructions
- Test ocf-zip-comp - OCF ZIP archives should support the "store" and "deflate" method. HOT 8
- Test ocf-zip-mult - The Zip file is not really multiple volume Zip? HOT 2
- Missing test pkg-spine-nonlinear "usable" HOT 3
- Test pkg-linked-records - According to the spec. this test should be a "SHOULD"
- Test confreq-rs-file-urls - Reading Systems must prevent access to resources referenced via file URLs HOT 2
- Test - Reading systems that allow local storage SHOULD provide methods for users to inspect or delete that data.
- Test - Sideloaded EPUB publications require the user's consent to use scripting and remote resources
- Test - every EPUB publication should be assigned a unique origin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epub-tests.