Forums

w3c validation

sohopros 29 Apr, 2014
Hello!
We are using Chronoforms 5.0 RC5 on Joomla 3.2 for one of development websites. Happens that we have a form published on the home page. When we pass this development instance through W3C Validator we are getting a few errors coming from cegcore library (please, see attached).

1 - Can you, please, suggest a way to eliminate these errors? WIth some kind of template override? (we have a no hack policy here 😉 )
2 - We noticed that most of the errors come from bootstrap and jquery import tag. Is there anyway to disable these tags using the backend, once joomla already imports bootstrap and jquery?

Thank you,
SOHO Prospecting Team
GreyHead 29 Apr, 2014
Hi sohopros,

The attachment didn't make it. Can you post the errors please.

Bob
Max_admin 30 Apr, 2014
Hi sohopros,

I tested this more but the issues to fix are not clear, like the missing required attribute error, which attribute ?

If you can test using the code only and find the missing attribute then please let me know and I can add it!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 30 Apr, 2014
Hi sohopros,

Thank you - I took look and still have no idea what the errors are. Do you know what attributes are missing?

Bob
sohopros 02 May, 2014
Hi Bob and Max!
I am sorry for the delay on the answer but the developer working on this project was off for a couple of days.
We believe that there are two separated issues:
1 - The links are loading inside the body of the document instead of in the head.
2 - The tags are not being properly closed as you can see on the sample that he sent me below:

<!--Current links --> 
<link href="http://domain.com/libraries/cegcore/assets/bootstrap/css/bootstrap.css" media="screen" rel="stylesheet" type="text/css">
<link href="http://domain.com/libraries/cegcore/assets/bootstrap/css/bootstrap-theme.css" media="screen" rel="stylesheet" type="text/css">
<link href="http://domain.com/libraries/cegcore/assets/bootstrap/css/bootstrap-gcore.css" media="screen" rel="stylesheet" type="text/css">
<link href="http://domain.com/libraries/cegcore/assets/font_awesome/css/font-awesome.css" media="screen" rel="stylesheet" type="text/css">

<!--With closed tags -->
<link href="http://domain.com/libraries/cegcore/assets/bootstrap/css/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
<link href="http://domain.com/libraries/cegcore/assets/bootstrap/css/bootstrap-theme.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="http://domain.com/libraries/cegcore/assets/bootstrap/css/bootstrap-gcore.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="http://domain.com/libraries/cegcore/assets/font_awesome/css/font-awesome.css" media="screen" rel="stylesheet" type="text/css"/>


I am aware that this is coming from a library and not Joomla component and I not entirely informed on libraries. However, if you would take my two cents I would suggest that if possible make the css be called with the method addStyleSheet from JDocument class.

http://docs.joomla.org/J3.2:Adding_JavaScript_and_CSS_to_the_page

We do appreciate your help and any input that we can get from more experienced Joomla developers!
Thank you,
SOHO Prospecting Team
Max_admin 02 May, 2014
Hi Sohopros,

While testing earlier with the tags, I closed them but that didn't fix the errors, it looks like the validator is looking for some attribute.

Having the tags inside the body should be fine in HTML5, but I will try to check if its possible to load the CSS files only in the header section, please send me a message using the "Contact us" page to get the patch!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.