Page 1 of 1

Problem with HTML validation

Posted: 07 Nov 2011, 12:30
by CarolHaynes
I have a simple article that only has a single map.

It doesn't validate properly with W3C validation tool.

Anyone any idea how to fix it?

Sorry I have tried searching the forum but can't find a reference to the problem.

Web page with the problem is:

http://www.dalesweb.com/wcf/location

and the error flagged up in W3C validator is:

Error Line 113, Column 51: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

…dcs-article"><p><div class="phocamaps"><div id="phocamaps-box"><div class="pmb…



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Re: Problem with HTML validation

Posted: 09 Nov 2011, 22:55
by Jan
Hi, check your article source (in your editor), maybe the plugin was pasted in p tags by your editor:

<p>{plugin code}</p>

just change it to:

<div>{plugin code}</div>

Re: Problem with HTML validation

Posted: 16 Nov 2011, 20:26
by CarolHaynes
Thanks that fixed it.

I am getting really tired of JCE - it seems to screw up so many things being 'helpful'

Re: Problem with HTML validation

Posted: 18 Nov 2011, 00:05
by Jan
Ok