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
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

