[OpenLayers-Users] DOCTYPE declaration breaks IE (all versions)
Prins, drs. M.C. (Mark)
m.c.prins at minlnv.nl
Fri Oct 17 05:27:10 EDT 2008
> -----Oorspronkelijk bericht-----
> Van: users-bounces at openlayers.org
> [mailto:users-bounces at openlayers.org] Namens David Martin
> Verzonden: vrijdag 17 oktober 2008 8:17
> Aan: users at openlayers.org
> Onderwerp: [OpenLayers-Users] DOCTYPE declaration breaks IE
> (all versions)
>
> Hi all,
>
>
>
> I have been working on a very strange issue that has taken me
> a few days to find. The issue is I have found it and now have
> no idea how I can fix it. It is reproducible and I have
> published two pages one with and one without the error. You
> need to use IE to find it as FF, Opera and others seem to work.
>
>
>
> The application uses OL to output Google driving directions
> using a vector layer and allows users to select various base
> layers and/or select from a number of poi wms layers.
>
>
>
> The problem is that with IE when a your switch layers the
> extent bounds of the OL changes and moves the vector line to
> the wrong spot. Now this only happens when you specify an
> XHTML doctype in the header of the page.
>
>
>
> The examples
> http://www.exploroz.com/Places/OLDirections_DT.aspx?from=Perth
> &to=Albany once this is loaded change the To address to Perth
> and hit go then move across the various layers you will see
> the extents on the Google layers goes strange and the DD line
> is in the wrong place. If it does not fail try change the to
> address to something else like Adelaide and try again.
>
>
>
> The example without the XHTML doc type and exactly the same
> code is
> http://www.exploroz.com/Places/Directions_DT.aspx?from=Perth&t
> o=Albany you can hit this all day and it will not fail.
> However some of the style elements will not display correctly.
This page is generating a 404 error for me
>
> Any help or ideas?
>
Without having looked at your code;
Specifying the doctype and and/or xml prolog changes the rendering behaviour from strict to quirks mode (or the other way around) for IE; this will mess up many css options.
See eg. : http://www.cs.tut.fi/~jkorpela/quirks-mode.html or http://www.quirksmode.org/css/quirksmode.html
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
More information about the Users
mailing list