Page MenuHomePhabricator

<gallery> produces a </tr> without a matching <tr>
Closed, ResolvedPublic

Description

Author: j.niesen

Description:

The following wikitext

<gallery>
a

</gallery>

produces this HTML (attributes omitted for clarity):

<table><td><div>A</div></td></tr> </table>

This is usually cleaned up by HTML Tidy.

Note that there is no <tr> tag, but there is a </tr> tag.
The attached patch fixes this.

Additionally, I get the error message:
"Only variables should be assigned by reference in
/home/jitse/wikipedia/phase3-cvs/includes/Parser.php on line 3678

I didn't fix this as it might indicate some deeper bug.


Version: 1.6.x
Severity: minor

Details

Reference
bz5005

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:07 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz5005.
bzimport added a subscriber: Unknown Object (MLST).

j.niesen wrote:

bug fix

Attached:

Fixed in trunk@13890 , REL1_6@13891 . Will be in 1.6.4 .

Thanks for the patch!