W3C error

Phoca Maps - displaying maps in Joomla! CMS
enjoda
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 30 May 2013, 14:17

W3C error

Post by enjoda »

W3C error

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

<p><div class="phocamaps" :cry: ><div class="phocamaps-box" align="center" style="marg…


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>").


Thank you in advance
Jonas
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: W3C error

Post by Jan »

Hi, see similar posts in this forum, where this is explained, in short: People and SEO are important for Phoca Extensions. To have good SEO, the site needs to be displayed similar in every possible screens and in every possible browsers (e.g. in non standard browsers like IE is) To do so, you cannot be limited by validators becasue you need to have some hacks for non standard users, you need to use newest features (which validators don't know), you need to use system features (system features sometimes break validator rules: you have a choice - to break the rules and save system resources or to not break the rules and e.g. use a lot of system resources which can then slow down the loading of page, etc. etc. - this is only one example of many)

So there is no logical reason to be limited by validators and damage your SEO (of course I don't say, the displaying should break the html rules, etc. but in this case there is no problem to display this html for the browsers but to be validator friendly you need to write some system plugin which then will correct the html output and in fact will slow down your site and will make your SEO low :-( )

See more about this problem: "different parts of the system cannot influence each other", etc.

Jan
If you find Phoca extensions useful, please support the project
Post Reply