I guess I don't have a server that will deliver up Content-Type: application/xhtml+xml, so I haven't been able to test that. Is there a way to coerce that for a browser? Do you have an example page that does that?


On Wed, Aug 29, 2012 at 7:02 AM, Mikko Rantalainen <mikko.rantalainen@peda.net> wrote:
2012-08-28 22:26 Europe/Helsinki: Robert Hanson:
>> (As a related note, has anybody successfully used Jmol in XHTML5
>> document? I tried to do so but never got it to work.)
>>
> How does one distinguish by DOCTYPE  XHTML5 and HTML5?

HTML5 is a resource with Content-Type: text/html where the start of the
file reads (case insensitive) "<!DOCTYPE html>".

XHTML5 is a resource with Content-Type: application/xhtml+xml where the
start of the file may start with (case insensitive) "<!DOCTYPE html>".
Note that technically DOCTYPE declaration is not required for XML (or
XHTML5) files.

The latter is a real XML file as opposed to HTML5 variant that should
use HTML5 parser if available.

--
Mikko



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900