Last modified: 2010-05-15 15:33:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4050, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2050 - Using nonexistent template in table header inserts an extraneous ">" into the rendered page
Using nonexistent template in table header inserts an extraneous ">" into the...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.4.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.canyonwiki.com/wiki/index....
:
Depends on:
Blocks: html
  Show dependency treegraph
 
Reported: 2005-05-02 16:39 UTC by Ryan Gardner
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Gardner 2005-05-02 16:39:26 UTC
Building a table and following the instructions at metawiki, I used {{prettytable}} to format a table. On the rendered page, an extra ">" 
hung between the caption of the table and the table itself. Removing the "{{prettytable}}" fixed the error (and I guess {{prettytable}} is the 
default table formatting because it didn't change the looks of the table to remove that)

I searched through all the files to try to find where the heck {{prettytable}} lived, but I had no luck.
Comment 1 Rowan Collins [IMSoP] 2005-05-02 17:06:36 UTC
The code {{prettytable}} just means "insert the contents of the page
[[Template:Prettytable]] here", so if you haven't created such a template, it
should have no effect. See [[meta:Help:Template]]; I've re-worded the section of
[[meta:Help:Table]] that refers to this to hopefully make clearer that this is
not some built-in part of the software, just an example of a useful trick.

Meanwhile, using the non-existent template in the middle of the table syntax
appears to have confused the parser somewhat, hence the extra ">". That could be
considered a bug, but it's not something that ever *needs* to work, and solving
it is likely to create more serious problems.
Comment 2 Brion Vibber 2005-05-02 20:29:56 UTC
This creates invalid markup, from the link replacement borking:
<table <!-- -->>
Comment 3 Brion Vibber 2005-05-02 20:33:08 UTC
New HTML sanitizer in 1.5 handles this correctly: http://test.leuksman.com/index.php/2050

Resolving as FIXED.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links