W3C Validation errors on valid code

ro rob_hawthorn 06 Apr, 2010
Hi,
I've been using the W3C validator on a page that has the chronoform on module position "right" - the right hand side column. And an article in the main area.

When validating the page with the chronoform disabled the page validates but when validating the page with the chronoform enabled (in the right hand column the page throws errors.

I've checked in Dreamweaver and the code is valid so I can't understand why it's causing the errors. The attachment shows the specifc errors.

Does anyone have any ideas.

Regards,
Rob
[attachment=0]ValidationErrors.JPG[/attachment]
Gr GreyHead 06 Apr, 2010
Hi Rob,

Impossible to tell from this - a link to the page would be helpful.

Looks like a fault with table tags. ChronoForms itself doesn't use any as far as I recall so it could be a problem with the Form HTML or the module template.

Bob
Gr GreyHead 06 Apr, 2010
Hi Rob,

The problem is in the Form HTML

			<option value="FreeIndex">Free Index</option>

			<option value="LocalDirectory">A Local Directory</option>
		              </select></td>
    </tr>
					<!--<tr>
                      <td>Please enter the text from the image (without spaces)</td>
					  <td></td>-->
    </tr>
That last </tr> should be inside the comments.

Bob
ro rob_hawthorn 06 Apr, 2010
Ah the indecision of whether to add the recaptcha.....

Thanks for your help Bob.

Now I know your not here to valid people's pages so this is not meant to be cheeky but I've got two errors on the same page as before http://midland.please-code.me/contact-midlands-web-design.html, I don't think this is something I can amend from the form code.

Thank you again for your help. P.s. Just buying the link free version....this is more of a thank you to yourself and Max than removing the link.
[attachment=0]ValidationErrors.JPG[/attachment]
nm nml375 06 Apr, 2010
Hi Rob,
It seems your template tries to place the main component area within a paragraph block (<p></p>). This is the cause for both errors, as paragraphs only permit "inline elements", not "block elements". You should look for something like "<p><jdoc:include type="component" /></p>" within your template files, and either remove the <p></p>, or replace them with <div></div>.

/Fredrik
ro rob_hawthorn 06 Apr, 2010
Hi Fredrik, thanks very much for your reply, I'll have a search for that, fingers crossed I can find it.

Regards,
Rob
nm nml375 06 Apr, 2010
Hi rob,
I suppose this is a commercial/proprietary template (JA Rasite?)

From what I can read of the generated html-source, this should be just below a <div> tag with class="article-content".

Oh wait, are you using the ChronoForms plugin to display your form within an article? If that's the case, then you'll need to edit your container article and remove the <p></p> surrounding the article content, using the "Edit HTML Source" option.

/Fredrik
ro rob_hawthorn 06 Apr, 2010
Ah jeeze I was looking too deep and it was a simple set of <p> tags outside my {chronocontact} 😶

Thanks Fredriks it's much appreciated, I've been tearing my hair out with this. Have a good week.

Regards,
Rob
This topic is locked and no more replies can be posted.