Jump to content

incorrectly placed doctype


paleolith

Recommended Posts

It seems that every gc.com cache page (I haven't checked non-cache pages) starts with

 

<link href="../favicon.ico" rel="shortcut icon" />
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<link rel="shortcut icon" href="../favicon.ico" />
<link rel="icon" href="../favicon.ico" />

 

What the heck is going on? The doctype is supposed to be the very first thing in the document. And why does the favicon link appear twice, once even before the <html>?

 

But the document isn't valid HTML or XHTML. In fact, the doctype specifies an invalid type according to validator.w3.org when I try uploading the document with the first line deleted.

 

This is very likely related to the problem reported in another current thread, where it's difficult to determine which browser is right and which is wrong when the document served is clearly wrong whether it's HTML or XHTML.

 

What validator.w3.org says about a current cache page (it appears to me that most of the errors result from the bad doctype)

 

Edward

Link to comment
Guest
This topic is now closed to further replies.
×
×
  • Create New...