nomisma / framework

Apache License 2.0
12 stars 4 forks source link

Move to xhtml5 and use 'application/xhtml+xml' as the mime/type to allow empty content elements to work #1

Closed sfsheath closed 11 years ago

sfsheath commented 11 years ago

Nomisma documents should be served with the mime type 'application/xhtml+xml'. This picks up on a issue noted in the GOogle group.

We are currnently serving empty div elements with mime type 'text/html', which is an error.

On a related note, I'm pretty sure we should drop the explicit PUBLIC identifier in the DOCTYPE declaration and move to xhtml5 style <!DOCTYPE html> . That point may be worth a separate github issue.

There are definitely complexities here but the combination of <!DOCTYPE html> with the right mime for xml will give us a solid and standards-based foundation.

ewg118 commented 11 years ago

The mimetype is now application/xhtml+xml. I replaced the Google Physical layer with OpenStreetMaps for now to get around the javascript bug in the Google Maps API.