Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Working Mechanic
Picture of Mitch
Posted
I have seen some information on the forum regarding the lack of ability to change the DOCTYPE declaration through SiteSpinner, but nothing concrete if this is on the list of things to add to a future release of SS.

I recently ran into a situation where I needed to change the doctype to accomodate a problem with Opera 9.x displaying content incorrectly. I really did not want to manually edit 25 pages, but I had no choice. I think that this feature (changing doctype in SS) needs to be given serious consideration and moved up the list.
 
Posts: 35 | Registered: October 06, 2003Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Power' Mechanic
Picture of Bruceee
Posted Hide Post
You can add a DOCTYPE declaration via a code object with a Geometry name of TOPMOST. However it results in two DOCTYPEs at the head of the page (a Bad Thing), so I would use it in only during development, and manually make the proper change after final publish.

I would be very cautions about changing the DOCTYPE. I suggested an innocuous change recently to accommodate a CSS menu, and it turned out to break some of the animation feature of SSPro. So I suggest that if you do decide to change the DOCTYPE, that you check that your page still functions correctly in all the main browsers.
 
Posts: 9250 | Location: Wellington, New Zealand | Registered: December 11, 2003Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Picture of Mitch
Posted Hide Post
Thanks for the reply Brucee. I did read about using the TOPMOST option on a forum post, but I would still need to modify the file(s) to remove the other declaration.

I was having a problem specific to Opera 9 and did find a doctype recommended on the W3C website that fixed the issue. I did test out my pages (with the new declaration) and they work in IE, FF and Opera. I haven't noticed anything strange.

I too am always concerned when I change something from the "norm", but I felt OK about it since this doctype was on the W3C website. I am a little uneasy when I don't completely understand something.

Here is the change I made:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Update: I did find this website that has a nice explanation regarding doctype:
Doctype explanation

This message has been edited. Last edited by: Mitch,
 
Posts: 35 | Registered: October 06, 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.