Guest Posted April 14, 2006 Share Posted April 14, 2006 Short version: In the next release, change <!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"> to <!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"> Notice case change of HTML right after !DOCTYPE. Long Version: I tried to validate my installation of CubeCart as well as the demo. The errors are related to the DocType declaration. Regarding XML validation of an XHTML document, the W3 specs state: "The Name in the document type declaration MUST match the element type of the root element." (http://www.w3.org/TR/REC-xml) The error can be resolved by changing the upper case "HTML" after the <!DOCTYPE to lower-case so that is matches the lower-case html in the next line: <html xmlns="http://www.w3.org/1999/xhtml"> To be valid XML, and therefore valid XHTML, the two MUST match exactly (XML is case sensitive). --------------------------- Thanks for considering this issue Chuck Cox, a great fan of CubeCart Quote Link to comment Share on other sites More sharing options...
Guest walmarc Posted April 14, 2006 Share Posted April 14, 2006 I've checked a recent installation and the "html" not "HTML" is there (VERSION 3.0.10). I have 27 validation errors on the installation. All refer to: the parsing error attributed to "&" in site docs rather than "&" + a couple of end tags viz ">" rather than the correct "/>". I'm thinking it is the site docs + the admin entries that cause issues rather than CubeCart as a whole. Note: only tested on index.php :D Quote Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2006 Share Posted June 6, 2006 + a couple of end tags viz ">" rather than the correct "/>". I'm thinking it is the site docs + the admin entries that cause issues rather than CubeCart as a whole. Note: only tested on index.php I'm seeing the similar errors on validation of my 2 cube cart sites that I am setting up at the moment, any ideas on where to correct this? Had a quick flick through the files in the includes directory and the skins template files, nothing jumps put as an obvious fix. This isn't surprising seeing as I'm a numpty and not done much of this before! The errors I see are on the final </html> tag at the eng of the document, not really clear what the issue is. I also have the Doctype problem as well. Fixes anyone, thanks? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.