Jump to content

XHTML Validation issue


Guest

Recommended Posts

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

Link to comment
Share on other sites

Guest walmarc

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 "&amp;"

+ 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

Link to comment
Share on other sites

  • 1 month later...

+ 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! :P

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...