mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
An open-source, web-based viewer for zoomable images, implemented in pure JavaScript.
bff93af17e
The existing check for whether the tilesource data is XML or JSON looks for a tag anywhere in the response content, which incorrectly flags the content as XML in the case where it is really JSON with XML embedded in it. This commit corrects that problem by requiring the tag to occur as the first non-whitespace part of the content. This is basically a poor person's well-formedness check since well-formed XML cannot have non-whitespace content outside of the root node. N.B. While malformed XML content with non-whitespace characters before the first element has been getting identified as XML, it has not been getting parsed correctly. With current parsing infrastructure, the content has been getting replaced by a parsing error message. With more up-to-date parsing infrastructure, it will throw an error. Either way we're not losing anything by failing to identify malformed XML as XML. Addresses issue #2325. |
||
---|---|---|
.github | ||
.vscode | ||
images | ||
nbproject | ||
psd | ||
src | ||
test | ||
.editorconfig | ||
.eslintrc.hound.json | ||
.eslintrc.json | ||
.gitignore | ||
.hound.yml | ||
.travis.yml | ||
changelog.txt | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
openseadragon.sublime-project | ||
package-lock.json | ||
package.json | ||
README.md |
OpenSeadragon
An open-source, web-based viewer for zoomable images, implemented in pure JavaScript.
See it in action and get started using it at https://openseadragon.github.io/.
Stable Builds
See the GitHub releases page.
Development
If you want to use OpenSeadragon in your own projects, you can find the latest stable build, API documentation, and example code at https://openseadragon.github.io/. If you want to modify OpenSeadragon and/or contribute to its development, read the contributing guide for instructions.
License
OpenSeadragon is released under the New BSD license. For details, see the LICENSE.txt file.