startExpandCollapse NOT XHTML VALID [SOLVED]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
pamelina
Forum Members
Forum Members
Posts: 69
Joined: Mon Nov 05, 2007 4:05 pm

startExpandCollapse NOT XHTML VALID [SOLVED]

Post by pamelina »

Hello,

When using 'startExpandCollapse' it fails to validate as XHTML VALID...

There is problem with '; in function.startExpandCollapse.php

Here is XHTML output ...

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

     
example



     

      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 "" or "") inside an inline element (such as "", "", or "").
Last edited by pamelina on Sun Jan 25, 2009 6:33 pm, edited 1 time in total.
pamelina
Forum Members
Forum Members
Posts: 69
Joined: Mon Nov 05, 2007 4:05 pm

Re: startExpandCollapse NOT XHTML VALID

Post by pamelina »

Has anyone found a solution for above problem?
Last edited by pamelina on Fri Jan 23, 2009 12:25 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: startExpandCollapse NOT XHTML VALID

Post by Rolf »

Hey Pamelina

perhaps you placed the tag between ...
A 'div' between 'p' isn't W3C valid.

®olf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
pamelina
Forum Members
Forum Members
Posts: 69
Joined: Mon Nov 05, 2007 4:05 pm

Re: startExpandCollapse NOT XHTML VALID

Post by pamelina »

Hi Rolf,

The problem is within function.startExpandCollapse.php ...
not with ... 
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: startExpandCollapse NOT XHTML VALID

Post by KO »

Or you might have 2 same ID's which is forbidden.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: startExpandCollapse NOT XHTML VALID

Post by Rolf »

Hi Pamelina,

Perhaps you can give us a page url?


Had the same problem once. I can reproduce this error:
When I place the following line in a page, it isn't xhtml valid anymore.

Code: Select all

<p><div>rolf</div></p>

W3C output:
Line 144, Column 4: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
rolf
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 "" or "") inside an inline element (such as "", "", or "").
In your case, the would be made by the {startExpandCollapse} tag...
The by TinyMCE?

greetz,

Rolf  :D
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: startExpandCollapse NOT XHTML VALID

Post by tyman00 »

I will agree with Rolf here.

You are calling the {startExpandCollapse} tag inside of a paragraph. It is not valid to do so.

I will be it looks kind of like this in your source:

Code: Select all

<p> Text text text more text some more text <div id="answer" class="expand"><br />example<br /></div></p>

Try calling the tag after your paragraph.

Code: Select all

<p> Text text text more text some more text </p>
<div id="answer" class="expand"><br />example<br /></div>
It can also look like this in your administration area:

Code: Select all

<p>text text text text </p>
{startExpandCollapse}
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
pamelina
Forum Members
Forum Members
Posts: 69
Joined: Mon Nov 05, 2007 4:05 pm

Re: startExpandCollapse NOT XHTML VALID

Post by pamelina »

Thank you all for your answers, I got it working, now I'm testing couple of js. to make it smooth opening ...
Post Reply

Return to “Layout and Design (CSS & HTML)”