Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Parser problems in 1.12 with ordered lists (another cry for help ; -) )

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


U.Baumbach at web

Jun 28, 2008, 9:31 AM

Post #1 of 2 (381 views)
Permalink
Parser problems in 1.12 with ordered lists (another cry for help ; -) )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

at the end of

http://de.wikipedia.org/wiki/Hilfe:Listen

you can find an example for an ordered list interspersed with a simple
text line and with a new new starting number.

Wiki-text is

..............................
# eins
# zwei
Zwischenüberschrift od. Leerzeile
#<li value="3"> drei</li>
# vier
..............................

and will/should lead to

..............................
~ 1. eins
~ 2. zwei

Zwischenüberschrift od. Leerzeile

~ 3. drei
~ 4. vier
..............................



In our old MS 1.9.3 we got instead:

..............................
~ 1. eins
~ 2. zwei

Zwischenüberschrift od. Leerzeile

~ 1.
~ 3. drei
~ 4. vier
..............................


So we have decided to test it in a fresh installed and empty MW 1.12.0
- - with the same result!!

In de.wikipedia.org (1.13.alpha) it works fine.

So my question: What's wrong?

What I saw in HTML souce code was:

<ol>
<li> eins</li>
<li> zwei</li>
</ol>
<p>Zwischenüberschrift od. Leerzeile</p>
<ol>
<li> <li value="3"> drei</li> </li>
<li> vier</li>
</ol>

So why the second ordered list comes with a double <li> tag where
1.13.Alpha (de.wikipedia.org) shows correct:

<ol>
<li>eins</li>
<li>zwei</li>
</ol>
<p>Zwischenüberschrift od. Leerzeile</p>
<ol>
<li value="3">drei</li>
<li>vier</li>
</ol>



Uwe (Baumbach)
U.Baumbach [at] web


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIZmdoFEbayCH8zXkRAnO5AJ9Zft2kvXhHoaZh05Iulhz7JWeM0ACguh85
S0nKvMcbZTYdFJDBLmnGXGU=
=PSSA
-----END PGP SIGNATURE-----

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


tstarling at wikimedia

Jun 29, 2008, 2:41 PM

Post #2 of 2 (332 views)
Permalink
Re: Parser problems in 1.12 with ordered lists (another cry for help ; -) ) [In reply to]

Uwe Baumbach wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> at the end of
>
> http://de.wikipedia.org/wiki/Hilfe:Listen
>
> you can find an example for an ordered list interspersed with a simple
> text line and with a new new starting number.
>
> Wiki-text is
>
> ..............................
> # eins
> # zwei
> Zwischenüberschrift od. Leerzeile
> #<li value="3"> drei</li>
> # vier
> ..............................
>
> and will/should lead to
>
> ..............................
> ~ 1. eins
> ~ 2. zwei
>
> Zwischenüberschrift od. Leerzeile
>
> ~ 3. drei
> ~ 4. vier
> ..............................
>

No it shouldn't.

[...]
> So why the second ordered list comes with a double <li> tag where
> 1.13.Alpha (de.wikipedia.org) shows correct:

Because on de.wikipedia.org, Tidy is cleaning up MediaWiki's incorrect
HTML output in such a way that it appears that MediaWiki has this feature.
MediaWiki does not have this feature, and if it did, the syntax would be
different.

The fact that MediaWiki is producing invalid HTML is a bug. When the bug
is fixed, this apparent feature will disappear.

-- Tim Starling


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.