Added reversed as acceptable attribute for ol
authorLee Bousfield <ljbousfield@gmail.com>
Sun, 22 Nov 2015 02:24:29 +0000 (19:24 -0700)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 22 Nov 2015 17:39:15 +0000 (17:39 +0000)
According to w3 at http://www.w3.org/TR/html-markup/ol.html reversed
specifies if the list order should be reversed.

Bug: T118701
Change-Id: I357957faafadfae1a0300d1cb8ba7eaa3fa0aed5

includes/Sanitizer.php

index a856f1e..4fc3209 100644 (file)
@@ -1631,7 +1631,7 @@ class Sanitizer {
 
                        # 10.2
                        'ul'         => array_merge( $common, array( 'type' ) ),
-                       'ol'         => array_merge( $common, array( 'type', 'start' ) ),
+                       'ol'         => array_merge( $common, array( 'type', 'start', 'reversed' ) ),
                        'li'         => array_merge( $common, array( 'type', 'value' ) ),
 
                        # 10.3