on ‎2005 Nov 01 10:27 PM
I need a DOCTYPE declaration at the top of a portal component's html output in order to make some CSS features work. If you don't know what I am talking about, its a declaration of the type
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
at the top of an html page.
Does anyone know where to set this and on what level.
I noticed the html of SDN does have the DOCTYPE declaration, but our own portal doesn't seem to produce this DOCTYPE declaration.
Request clarification before answering.
Hi Theo
Even with the DOCTYPE that you note at sdn, modern browsers are switched to quirks mode, instead of strict mode, since it is an incomplete declaration without a reference to the DTD. That has exactly the same effect as not having a DOCTYPE declaration. You might find that switching IE to strict mode, might have unintended rendering effects in the portal.
See a good discussion here: http://hsivonen.iki.fi/doctype/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anton,
thanks for your reply. Haven't tried that yet, switching my browser to strict mode, but it would indeed not surprise me that this leads to some strange effect.
However that does not really answer my question : how can I set the DOCTYPE in the html output of my portal : is it a configuration done with the Visual Admin, do I need to customize the portal's pagebuilder. It's clear you cannot control it from within a portal component as this always get wrapped by an external html container.
In case you or anyone else here has an idea, I would be glad to read that in this thread.
Theo
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.