https://bugzilla.wikimedia.org/show_bug.cgi?id=36586
Web browser: ---
Bug #: 36586
Summary: CleanupPresentationalAttributes: must not replace
'align' parameter for tables
Product: MediaWiki
Version: 1.19
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
With $CleanupPresentationalAttributes=true (default in 1.19) 'align' parameters
are replaced with 'text-align' CSS.
This works for <div>, BUT for a <table> this is wrong (since 'text-align'
affects only the text inside the table, and <table align="center">...</table>
has the same effect as <center><table>...</table></center>).
I suggest that the 'align' parameters for tables should be left intact (even
with $CleanupPresentationalAttributes=true).
The alternative is to replace 'align=right' and 'align=left' by 'float:
(right/left)' style, and 'align=center' by wrapping the table into the <center>
tag.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l