Forum Moderators: open

Message Too Old, No Replies

DOCTYPE : safe to switch from Strict to Transitional?

Should I foresee major display problems across site?

         

udon333

12:38 pm on Oct 2, 2008 (gmt 0)

10+ Year Member



Hi there,
I have recently built templates for quite a large content-managed website in XHTML strict. Unfortunately, I didn't foresee the back-end development(I'm told it's ASP.NET) to be churning out code that doesn't validate as strict DTD .
I have changed the doctype to XHTML Transitional in my static html templates, and so far I don't see any display problems, however I am worried that I may be overlooking something important/obvious, which could cause major problems with the site at this late stage.
So I would love to hear from anyone who has experience of this -
Could changing the doctype from Strict XHTML to Transitional break *anything* on a site - client- or even server-side?

Thanks

encyclo

1:52 pm on Oct 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld udon333 :) Assuming you are changing nothing but the doctype itself (in other words, not adding an XML prolog or anything else before the doctype), then moving from XHTML 1.0 Strict to XHTML 1.0 Transitional will have virtually no effect.

The only potential problem could be with certain images within table cells in Firefox - the spacing might by very slightly altered. This, however, is usually easy to adjust.

udon333

2:28 pm on Oct 2, 2008 (gmt 0)

10+ Year Member



That's a relief! Many thanks for your reply.

rocknbil

8:17 pm on Oct 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why can't the developers output the code to your spec? As a programmer, I expect this of myself, it seems like you should be able to as well.