Skip to content

Commit

Permalink
Restore HTML5_List, but dont override
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Aug 7, 2019
1 parent 3ded16d commit 5633774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/HTML5Definition.php
Expand Up @@ -17,7 +17,7 @@ public static function setupDefinition(HTMLPurifier_HTMLDefinition $def)
// Order of modules is important - the latter ones override the former.
// Place common HTML5 modules at the end of the list
array(
'CommonAttributes', 'HTML5_Text', 'HTML5_Hypertext', 'List', // 'HTML5_List',
'CommonAttributes', 'HTML5_Text', 'HTML5_Hypertext', 'HTML5_List',
'Presentation', 'HTML5_Edit', 'HTML5_Bdo', 'Tables', 'Image',
'StyleAttribute', 'HTML5_Media', 'HTML5_Ruby', 'Name',
'NonXMLCommonAttributes',
Expand Down
14 changes: 7 additions & 7 deletions library/HTMLPurifier/HTMLModule/HTML5/List.php
Expand Up @@ -19,12 +19,12 @@ public function setup($config)
{
parent::setup($config);

// https://html.spec.whatwg.org/multipage/grouping-content.html#the-ol-element
$ol = $this->info['ol'];
$ol->attr['reversed'] = 'Bool#reversed';

// Attributes that were deprecated in HTML4, but reintroduced in HTML5
$ol->attr['start'] = new HTMLPurifier_AttrDef_Integer();
$ol->attr['type'] = 'Enum#s:1,a,A,i,I';
// // https://html.spec.whatwg.org/multipage/grouping-content.html#the-ol-element
// $ol = $this->info['ol'];
// $ol->attr['reversed'] = 'Bool#reversed';
//
// // Attributes that were deprecated in HTML4, but reintroduced in HTML5
// $ol->attr['start'] = new HTMLPurifier_AttrDef_Integer();
// $ol->attr['type'] = 'Enum#s:1,a,A,i,I';
}
}

0 comments on commit 5633774

Please sign in to comment.