ryan.wheale-gmail
-
9/18/2009 7:37:36 PM
RE:Strict DOCTYPEs
The "name" attribute for input elements is completely valid XHTML 1.0. The "name" attribute has been deprecated on other elements, such as a, iframe, img, etc.
Your markup wont validate because there is a hidden input element that must fall inside of a block element (such as a div). If you have the full source code, you can modify the following (note the <div> and </div> which should not exist in your code):
\UIControls\Pages\CMSPage.cs (368): Page.ClientScript.RegisterClientScriptBlock(typeof(string), "CMSLanguage", "<div><input type=\"hidden\" name=\"lng\" id=\"lng\" value=\"" + HTMLHelper.HTMLEncode(CMSContext.PreferredCultureCode) + "\" /></div>");
\UIControls\Pages\DocumentBase.cs(522): string tags = "<div><input type=\"hidden\" name=\"lng\" id=\"lng\" value=\"" + HTMLHelper.HTMLEncode(CurrentUser.PreferredCultureCode) + "\" /></div>\n";
If you do not have the full source code, I have been told that this issue was resolved in 4.1. Hope that helps.
~Ryan
|