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

       Web browser: ---
             Bug #: 39614
           Summary: Replace deprecated HTML tags in HTML5
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://www.w3.org/TR/2012/WD-html5-diff-20120329/#obso
                    lete-elements
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


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,

<center><table><tr><td>a</td></tr></table></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>

doesn't.

The changed tags should be given an extra CSS class in order to be able to
address them using CSS.

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

Reply via email to