[Mediawiki-l] Parser problems in 1.12 with ordered lists (another cry for help ; -) )

Tim Starling tstarling at wikimedia.org
Sun Jun 29 21:41:28 UTC 2008


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




More information about the MediaWiki-l mailing list