Last modified: 2014-03-11 14:08:53 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 T27792, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25792 - Unclosed elements in <table> cause wrong escaping
Unclosed elements in <table> cause wrong escaping
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.15.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-05 07:56 UTC by Liangent
Modified: 2014-03-11 14:08 UTC (History)
3 users (show)

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


Attachments

Description Liangent 2010-11-05 07:56:58 UTC
All cases are tested without Tidy enabled.

Wikitext 1 -- Looks good.

<div style="margin-left: 40%;">
<h1>Welcome!</h1>
<table style="border: 0; width: 100%;"><tr>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul></td>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul></td>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul></td>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul></td>
</tr></table>
</div>

Wikitext 2 -- </div> will be escaped and <div> will be unclosed.

<div style="margin-left: 40%;">
<h1>Welcome!</h1>
<table style="border: 0; width: 100%;"><tr>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul>
<td><ul><li>[[XX]]<li>[[XX]]<li>[[XX]]</ul>
</table>
</div>

</tr> and </td> are not compulsory here, in HTML (not XHTML).
Comment 1 Chad H. 2010-11-05 11:50:13 UTC
What possible use case for this is there?
Comment 2 Liangent 2010-11-06 07:27:03 UTC
(In reply to comment #1)
> What possible use case for this is there?

I was designing a page with the code above when I reported this bug. Users may write this for shorter code, or faster loading speed (without Tidy. See http://code.google.com/intl/en/speed/articles/optimizing-html.html ).
Comment 3 Tony Thomas 2013-11-09 12:43:55 UTC
I would like to work on this bug. please assign it to me.
Comment 4 Andre Klapper 2013-11-10 19:06:25 UTC
Tony: This is not an easy bug, and I am not sure how much sense this makes long-term, with Parsoid being worked on.

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


Navigation
Links