[jQuery] [Bug?] ajax and XML - issue with file extensions?
I have noticed some rather peculiar behavior with the ajax function:
I have a file called person.owl, which contains xml syntax, and when
trying to load that file the ajax call triggers the error function
(parsererror) / fails to load.
However, if I rename the file to person.xml (e.g. change the
extension) I have no problems whatsoever anymore, the file loads
successfully.
Anything I can do to avoid this behaviour (with exception of
renaming?), it seems to be reproducible.
Spotted the bug when working on a plugin I'm writing, the owl (web
ontology language) extension is something encountered frequent in this
setting:
jOWL, a semantic javascript library at http://jowl.ontologyonline.org/
David Decraene.
http://ontologyonline.org