...

View Full Version : Problem with EmulateIE7



Partizan
02-15-2009, 12:33 PM
Hi,

As you can see from my validation, there is some issue with my EmulateIE7 code, maybe its in the wrong place?

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.minifigtimes.com%2Ffootball.shtml&charset=(detect+automatically)&doctype=Inline&group=0&verbose=1&user-agent=W3C_Validator%2F1.606


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>The Minifig Times for all your Lego News</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="description" content="A Lego news blog providing an insight into the crazy world of deranged Legomen otherwise known as minifigs.">
<meta name="abstract" content="The Minifig Times provides Lego news from the town, city, castle, pirates, train, space, technic and western themes.">
<meta name="robots" content="index,follow">
<meta name="googlebot" content="index,follow">
<meta name="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="shortcut icon" href="http://legolandtimes.bravehost.com/lego-icon.ico">
<link rel="stylesheet" type="text/css" href="default.css">

<style type="text/css"> <!--#include file="insert-menu-css.ins"--> </style>
<style type="text/css"> .ltrack { font-family: "calibri"; font-size: 10pt ; display:block; margin-right:260px; } </style>

</head>

<body>

Majoracle
02-15-2009, 12:56 PM
Well, from what I can see and what the validation is saying, you're using XHTML ruling in an HTML strict document. I can't test it, but you should be able to fix it by simply getting rid of the closing bit at the end of the tag.


<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

As for the other errors, in HTML 4.01, "width" attributes were depricated and CSS should be used instead. The TABLE one is pretty obvious.

Excavator
02-15-2009, 08:41 PM
Hello Partizan,
The validator is telling you exactly what Majoricle said -
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.

...IE7"> instead of ID7" />
Unless you want to change your DocType.

Partizan
02-16-2009, 08:36 PM
As for the other errors, in HTML 4.01, "width" attributes were depricated and CSS should be used instead. The TABLE one is pretty obvious.

Oops sorry, yea table one I missed.

Thanks for the feedback guys.

Is this how I can specify width in CSS?


.width-teams {
width: 40em ;
}

.width-table {
width: 5em ;
}

.width-points {
width: 5em ;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum