Last modified: 2013-10-06 16:25:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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.