IIS Search Engine Optimization Toolkit
IIS Incorrect on Invalid Markup
Last post May 10, 2010 05:55 PM by CarlosAg
Dec 21, 2009 10:23 AM|dbaechtel|LINK
On my website, the page starts out with the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>School-DashBoard Home</title><meta name="Keywords" content="School, Dashboard, School Dashboard, School-DashBoard" /><meta name="Description" content="This is the School Dashboard site." />
<link href="http://cdn1.officelivecontent.com/2.02.2407.0/WebHosting/_layouts/1033/wh/stylesV2/masterroot.css" mce_href="http://cdn1.officelivecontent.com/2.02.2407.0/WebHosting/_layouts/1033/wh/stylesV2/masterroot.css" type="text/css" rel="stylesheet"
<link href="http://cdn1.officelivecontent.com/2.02.2407.0/WebHosting/_layouts/1033/wh/stylesV2/tables.css" mce_href="http://cdn1.officelivecontent.com/2.02.2407.0/WebHosting/_layouts/1033/wh/stylesV2/tables.css" type="text/css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="/theme.css" mce_href="/theme.css" />
<style type="text/css"> </style>
SEO Toolkit reports: "The page contains invalid markup.
The Tag 'style' was not closed correctly, the Tag 'head' was closed instead.
It looks like to me that the style tag is open and closed correctly, and so is the head tag.
So why does SEO Toolkit report this a invalid markup ?
Are the remainder of the SEO Toolkit detections just as inaccurate?
iis seo toolkit
Dec 21, 2009 10:45 AM|Julusian|LINK
Dec 21, 2009 10:53 AM|dbaechtel|LINK
These are fairly basic HTML markup rules. That a tag may be open and closed by either <tag> </tag> or <tag.../> and that a tag may contain attributes without any content inside.
I expect the IIS SEO Toolkit should be smart enough to recognize this as correct HTML markup.
Not a very good tool if it can not properly recognize basic HTML syntax.
Jan 08, 2010 03:08 PM|CarlosAg|LINK
Thanks, we do have a bug in parsing empty syle tags, we have fixed that and will be releasing an update in the upcoming weeks.
For now this should be safe to ignore, and once we release the fix you will no longer get this problem.
Feb 01, 2010 02:57 AM|CarlosAg|LINK
We have a version now of the IIS SEO Toolkit that includes the fix for this problem, so please install the latest version and you should stop seeing this problem.
Mar 22, 2010 11:23 AM|Carnal_Ray|LINK
I hope this is the best place to post this, the forum topic seemed to be the closest match to my problem. If it is not then please accept my appoligies.
I have a similar problem with the IIS SEO Toolkit - When I run a report on a product page of my site, I get a violation :
The page contains invalid markup.
The page at "http://..." contains invalid markup.
The Tag 'tr' was not closed correctly, the Tag 'table' was closed instead.
If I validate the same page at http://validator.w3.org/ then it reports that the page has passed.
Is the IIS wrong or is it the w3 validator?
If anybody has any ideas then please do let me know.
Mar 25, 2010 10:34 AM|CarlosAg|LINK
That is very interesting to see the validator pass your markup since it does seem to have the problem mentioned in the toolkit, note that the last <tr> is never closed and instead </table> is closed. I would expect this to be raised by the validator but
somehow they are ok with it.
Mar 25, 2010 10:59 AM|Carnal_Ray|LINK
I guess that I messed up on that bit of code. I shall try and find the offending tag/ tags and close them properly, re-run the report until I get rid of the violation mentioned in the toolkit. I will then try the page again through the validator.
It does seem strange that the validator would pass the code with such an error.
Mar 25, 2010 11:43 AM|CarlosAg|LINK
One tip is that when you open that violation details (double click it), you can see where the problem in the markup exists by going to the "Content" tag. It should highlight the begining of the markup that cause the violation, that way you should know exactly
where the problem was found.
May 06, 2010 06:42 AM|Carnal_Ray|LINK
Just a quick update - Sorry it has been so long, I was side-tracked by a couple of other projects.
Using the content tab did help highlight the problem areas - Thanks for that Carlos. It took quite a bit of juggling about with <table>, <tr>, <td> tags to get my pages validating with IIS and W3Validator. The main problem was that my pages had been quite
heavily modified, with custom modules installed and some others removed so there were some extra tags still floating about where they shouldnt have been.
It was well worth the effort though as I now have my pages looking the way I want them in both Internet Explorer and Firefox and they validate in both IIS and W3.
May 10, 2010 05:55 PM|CarlosAg|LINK
By the way I just posted a blog on how to extend the SEO Toolkit to call the W3 Validator automatically: