Skip to content

Commit

Permalink
Restore all attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Aug 7, 2019
1 parent f626395 commit 36ef22d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions library/HTMLPurifier/HTMLModule/HTML5/List.php
Expand Up @@ -22,9 +22,9 @@ public function 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';

// 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';
}
}
6 changes: 3 additions & 3 deletions tests/HTMLPurifier/HTMLModule/HTML5/ListTest.php
Expand Up @@ -18,9 +18,9 @@ public function olInput()
array(
'<ol><li>Foo</li></ol>',
),
// array(
// '<ol start="2" type="i" reversed><li>Foo</li></ol>',
// ),
array(
'<ol start="2" type="i" reversed><li>Foo</li></ol>',
),
);
}
}

0 comments on commit 36ef22d

Please sign in to comment.