[OpenLayers-Users] OpenLayers broken under XHTML 1.0?

Jeff Dege jdege at korterra.com
Tue Aug 8 17:14:31 CDT 2006


That does seem to have been the problem.

I'd started with a copy of one of the example pages, and hadn't paid
much attention to the div the map was drawing in.

> -----Original Message-----
> From: Christopher Schmidt [mailto:crschmidt at crschmidt.net] 
> Sent: Tuesday, August 08, 2006 1:58 PM
> To: Jeff Dege
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] OpenLayers broken under XHTML 1.0?
> 
> On Tue, Aug 08, 2006 at 11:22:50AM -0500, Jeff Dege wrote:
> > VS 2005 creates page templates that include the following doctype
> > declaration:
> > 
> >    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > 
> > With this declaration, the map doesn't draw.
> 
> I just tried this, and under both XHTML 1.0 Strict and XHTML 1.0
> Transitional, I was able to get a map out of:
> 
> http://openlayers.org/dev/examples/xhtml.html
> 
> I have a feeling that you're attempting to use a 'height: 100%' type
> element or something, and if you're using XHTML, that has no meaning
> unless you also set the height of the html and body elements to 100%.
> 
> If this is not the problem you're having, or you can share some advice
> on how to reproduce the problem you are having, please let us 
> know, and
> we'll look further into the issue.
> 
> -- 
> Christopher Schmidt
> Web Developer
> 



More information about the Users mailing list