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

       Web browser: ---
             Bug #: 41018
           Summary: fixDeprecatedAttributes incorrectly converts the type
                    attribute of lists and list items
           Product: MediaWiki
           Version: 1.21-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: pleasest...@live.com
    Classification: Unclassified
   Mobile Platform: ---


includes/Sanitizer.php includes the following line in the function
fixDeprecatedAttributes(), introduced in r94465:

'type' => array( 'list-style-type', array( 'li', 'ol', 'ul' ) ),

There are two problems here:

1. In HTML5, the type attribute is NOT deprecated for ol elements.

2. This line fails to make the following substitutions:

   "1" with "decimal"
   "a" with "lower-alpha"
   "A" with "upper-alpha"
   "i" with "lower-roman"
   "I" with "upper-roman"

Consequently, pages such as Wikipedia:Text of Creative Commons
Attribution-ShareAlike 3.0 Unported License on the English Wikipedia do not
render correctly when both $wgHtml5 and $wgCleanupPresentationalAttributes are
enabled. As of revision 505139539, the subsections of that page are numbered
with Arabic numerals, rather than with lowercase letters as they should be.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to