CaZz Posted May 22, 2012 Share Posted May 22, 2012 (edited) Hi,Bonjour, I want to put my website online, but the w3c found 3 errors. If somebody know how to solve it, i'll be thanksfull Here the errors : Line 135, Column 100: document type does not allow element "link" here …" type="text/css" href="/prestashop/modules/imagesenlarge/imagesenlarge.css" /> ? The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). Line 137, Column 18: there is no attribute "language"<script language="javascript" type="text/javascript"> ? You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash. Line 755, Column 82: document type does not allow element "meta" here…eta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> ? The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). Line 757, Column 118: document type does not allow element "link" here… media="screen,projection" href="/prestashop/modules/totop/css/ui.totop.css" /> ? The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). link of the website : www.blancdirect.eu/prestashop It will be really cool if someone find how to solve it ! ps : sorry for my not perfect english, it's not my native language. Thanks for reading! CaZ Edited May 31, 2012 by CaZz (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted May 31, 2012 Share Posted May 31, 2012 for this lines, you need to add the css by the addcss function in the module configuration, in the hookHeader. This put the CSS with all other prestashop CSS " type="text/css" href="/prestashop/modules/imagesenlarge/imagesenlarge.css" /> … media="screen,projection" href="/prestashop/modules/totop/css/ui.totop.css" /> and the metas goes in the HEAD eta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" /> Link to comment Share on other sites More sharing options...
CaZz Posted May 31, 2012 Author Share Posted May 31, 2012 Hi, Thanks for you answer. I also posted this on the french forum (because i'm french) Here it is if you can read french http://www.prestashop.com/forums/topic/170306-validation-w3c-erreur/?do=findComment&comment=839276 So I corrected the error of the javascript and the errors of the totop modul. If you read the french topic, i ask for a solution for the imagesenlarge module, because I added a registerHook('header') in the instal function and also a public fonction Hookheader, but I still got the same w3c error. I also added the module with de BO function. If you know how to solve it, really thank you. ps : If i got the answer on the french topix, i'll post it here also. Link to comment Share on other sites More sharing options...
CaZz Posted May 31, 2012 Author Share Posted May 31, 2012 The error are solved. Both modul patched here : http://www.johanncorbel.fr/modules-prestashop/ subject > solved Link to comment Share on other sites More sharing options...
shacker Posted May 31, 2012 Share Posted May 31, 2012 ah ok, perfect Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now