Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Two doctype tags in IE 9 and 10 View modes: 
User avatar
Member
Member
dford-catapultrpm - 5/15/2013 9:24:44 AM
   
Two doctype tags in IE 9 and 10
I have an issue where when the page is viewed from IE 9 or 10, there are two doctype tags.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><

However when the page is viewed in IE 7 or 8, there is only one doctype tag:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

Why are there two doctypes IE 9 and 10 while only one is IE 7 and 8.

BTW, this is from the same page and I am using IE compatibility mode.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/16/2013 4:36:36 AM
   
RE:Two doctype tags in IE 9 and 10
Hello,

This is really strange. Do you have any link where we can see this behaviour? Have you checked the code of your master page, or are you using the HEAD (Head HTML code) Web Part on your pages?

Best regards,
Martin Danko

User avatar
Member
Member
dford-catapultrpm - 5/16/2013 7:41:07 AM
   
RE:Two doctype tags in IE 9 and 10
I am using a master page and this is the DOCTYPE tag from it:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

As of now, the site is in our Dev environment. I will see about getting an external link to it.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/17/2013 4:07:42 AM
   
RE:Two doctype tags in IE 9 and 10
Hi,

Aren't you using somewhere the macro <%=DocType%>? Especially if you are using ASPX templates, please check their code or just try to open your project in Visual Studio and try to search e.g. for "Transitional" word through all project files to find out where could potentionally this code come from.

Best regards,
Martin Danko