Last modified: 2013-11-29 11:28:13 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 T34373, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32373 - Unclosed tables are shown after the following text
Unclosed tables are shown after the following text
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 41236 57730 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-12 08:26 UTC by Michael M.
Modified: 2013-11-29 11:28 UTC (History)
3 users (show)

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


Attachments

Description Michael M. 2011-11-12 08:26:32 UTC
The wikitext (note the table ending with an open tr)

A
{|
! B
|-
C

parses as

<p>A</p>
<p>C</p>
<table>
<tbody><tr>
<th>B</th>
</tr>
</tbody></table>

In the original example the table ended with |-}, C was some amount of text including headlines etc., the table appeared at the very end of the article.

One can't expect a perfect output for incorrect input, but at least the order should remain the same.
Comment 1 Umherirrender 2011-11-12 10:23:25 UTC
Without html tidy the html output is:
<p>A
</p>
<table>
<tr>
<th> B
</th></tr>
C
</table>

The table is at the right please, but the browser (at least IE8) shows it in another order (the same order, which is also produced from html tidy):

A

C

B
Comment 2 Brion Vibber 2011-11-13 01:28:38 UTC
As I recall this is pretty typical browser behavior; text that's randomly spewed into the <table> but outside any <tr>s gets shown at the start, then it shows the caption, header, rows, footer.
Comment 3 Michael M. 2012-10-20 07:30:14 UTC
*** Bug 41236 has been marked as a duplicate of this bug. ***
Comment 4 Michael M. 2013-11-29 11:28:13 UTC
*** Bug 57730 has been marked as a duplicate of this bug. ***

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


Navigation
Links