[pmwiki-users] Re: Div within Span

V.Krishn mistyfire at autograf.pl
Wed Jul 13 15:25:41 CDT 2005


On Thursday 14 July 2005 00:46, you wrote:
> On Thu, Jul 14, 2005 at 12:10:25AM +0530, V.Krishn wrote:
> > Are they permitted within wiki pages?:
> >
> > [--(:pagelist fmt=group list=normal:)--]
> >
> > OR
> >
> > [--(:pagelist group={$Group} list=normal:)--]
> >
> > They produce Div tags within Span tags.
>
> PmWiki doesn't prevent someone from writing these,
> but the result is not valid HTML.
Plus it would very difficult for authors if restrictions or html rules are 
layed down in wiki too. The idea of free flow of writing would be distroyed.
>
> In general I've decided that it's not worth the
> effort that would be required to make PmWiki
> handle every possible HTML situation that could
> possibly arise.  
yes I agree, with it the complexity of code would immensely increase.
> For example, the following markup 
> will also produce incorrect HTML:
>
>    @@This is monospace ''and italic@@ and non-monospace''
This is a case of overlapping HTML.
the above produces:
<code>This is monospace <em>and italic</code> and non-monospace</em>

I think this had been an issued earlier in "hanging td's" in table, which I 
think has been fixed.
>
> Trying to recognize and handle these cases is well
> beyond the scope of what I'm trying to do with PmWiki.
>
> All that said, the solution to the [--(:pagelist:)--]
whereas this produces:

<span style='font-size:69%'>
<div>
<ul class='fplgroup'>
<li><a ..... .... </a></li>
<li><a ..... .... </a></li>
<li><a ..... .... </a></li>
<li><a ..... .... </a></li>
</ul>
</div></span>

Here I guess the code is inserting DIV just to encapsulate the UL.
Hmmm...... it would definetly be difficult for DIV or UL inserting function to 
check whether it is being encapsulated by a inline element before.
> problem would be to require that (:pagelist:) begin
> in the first column.
hmmm... first column?? would be a table I guess??
>
> Pm




More information about the pmwiki-users mailing list