[Mediawiki-l] Template is closing unclosed tag (e.g. DIV)

Gerrit Quast gerrit at gerritquast.org
Fri Jan 27 08:46:29 UTC 2006


Hi crew,

great to finally get a discussion on that topic.

I of course see the point of fixing broken tags in templates to keep
the generated HTML clean. But besides tags that are left unclosed
accidentally, we have a real use case for this as we see for the box
template.

Since I'm not too long into wiki usage, the suggestion might be wrong,
but maybe it could solve this issue: A flag that turns on/off the
parser's "error handling" by adding something like __DO_NOT_FIX_TAGS__
would be cool. Feasible or not?

Thanks, Gerrit

On 1/27/06, Rick DeNatale <rick.denatale at gmail.com> wrote:
> On 1/26/06, Brion Vibber <brion at pobox.com> wrote:
> > Rick DeNatale wrote:
> > > On 1/26/06, Brion Vibber <brion at pobox.com> wrote:
> > >> Gerrit Quast wrote:
> > >>> The problem is that for every template, mediawiki closes tags that
> > >>> left open. The second template (only the closing DIV) is escaped and
> > >>> appears as clear text.
> > >> IIRC, there's a bug in the parser cleanup when HTML Tidy is enabled which causes
> > >> it to _not_ close the open tags for each template.
> > >
> > > Of course one man's bug is another feature.
> >
> > Well, that "feature" will break, badly, in future versions of MediaWiki which
> > fix up the parser.
>
> I don't use it myself, but when it breaks, it's going to break a LOT
> of portal pages on wikipedia.
>
> --
> Rick DeNatale
>
> Visit the Project Mercury Wiki Site
> http://www.mercuryspacecraft.com/
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>


--

Gerrit Quast

gerrit at gerritquast.org
http://www.gerritquast.org



More information about the MediaWiki-l mailing list