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 "").
startExpandCollapse NOT XHTML VALID [SOLVED]
startExpandCollapse NOT XHTML VALID [SOLVED]
Last edited by pamelina on Sun Jan 25, 2009 6:33 pm, edited 1 time in total.
Re: startExpandCollapse NOT XHTML VALID
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.
Re: startExpandCollapse NOT XHTML VALID
Hey Pamelina
perhaps you placed the tag between ...
A 'div' between 'p' isn't W3C valid.
®olf
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: startExpandCollapse NOT XHTML VALID
Hi Rolf,
The problem is within function.startExpandCollapse.php ...
not with ...
The problem is within function.startExpandCollapse.php ...
not with ...
Re: startExpandCollapse NOT XHTML VALID
Or you might have 2 same ID's which is forbidden.
Re: startExpandCollapse NOT XHTML VALID
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.
W3C output:
The by TinyMCE?
greetz,
Rolf
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:
In your case, the would be made by the {startExpandCollapse} tag...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 "").
The by TinyMCE?
greetz,
Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: startExpandCollapse NOT XHTML VALID
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:
Try calling the tag after your paragraph.
It can also look like this in your administration area:
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>
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.
Re: startExpandCollapse NOT XHTML VALID
Thank you all for your answers, I got it working, now I'm testing couple of js. to make it smooth opening ...


