Last modified: 2013-10-06 16:25:25 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 T41614, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39614 - Replace deprecated HTML tags in HTML5
Replace deprecated HTML tags in HTML5
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: html
  Show dependency treegraph
Reported: 2012-08-24 10:00 UTC by Michael M.
Modified: 2013-10-06 16:25 UTC (History)
5 users (show)

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


Description Michael M. 2012-08-24 10:00:24 UTC
Like it is done for deprecated attributes (function fixDeprecatedAttributes in Sanitizer.php), deprecated HTML tags should be replaced by CSS, too.

These tags are (see URL):
* big
* center
* font
* strike
* tt 

For big, strike and tt this should be easy. font requires the obsolete attributes to be converted to CSS.
I'm not sure, whether it is actually possible to replace center,


centers the table (tested in Firefox), but something like

<div style="text-align:center; margin-left:auto; margin-right:auto;"><table><tr><td>a</td></tr></table></div>


The changed tags should be given an extra CSS class in order to be able to address them using CSS.
Comment 1 Gadget850 2013-02-03 02:45:34 UTC
To center a table:
style="margin: 1em auto 1em auto;"
Comment 2 Helder 2013-10-06 16:18:45 UTC
Marking this as invalid since $wgCleanupPresentationalAttributes was removed on
Change-Id: I4e86305520a3b22ef88381caab55d24abac932e3
(per bug 40632).

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