[Bug 25792] New: Unclosed elements in cause wrong escaping

Fri, 05 Nov 2010 00:57:07 -0700

https://bugzilla.wikimedia.org/show_bug.cgi?id=25792

           Summary: Unclosed elements in <table> cause wrong escaping
           Product: MediaWiki
           Version: 1.15.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Page rendering
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: liang...@gmail.com


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).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to