Change DOCTYPE

Hi,

With my apps, some of which were already created with SC5 and have now arrived in SC9.2, this Doctype is always output in the header:

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>

How can I change that globally to …

<!DOCTYPE HTML>

???

Doesn’t anyone have an idea?

Sorry, no. This is generated from the internals of Scriptcase. So there’s no solution there. But you can write a small php script that scans your directory and do a replace? You need to run this after each deploy, but…

Hi Albert, long time no read … :wink:

Scriptcase may generate this, but have a look at the samples on scriptcase.net. For them the Doctype is just HTML. Speak exactly as I would like it to, or as it is standard nowadays.

Hi Reinhard,
Yes, been a long time. I can’t tell. The samples of Scriptcase are not always up to date. But you’re right Doctype is just HTML in the samples. But I couldn’t find a spot where you can configure this. Sorry.