Skip to content

Commit

Permalink
Merge pull request #26 from shuklaakshayh07/data-checked_attr
Browse files Browse the repository at this point in the history
added data-checked attribute for li tag
  • Loading branch information
id4ho authored Apr 29, 2021
2 parents f23cfbe + b19e839 commit 3fc997a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Definition/HTMLDefinition.hack
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class HTMLPurifier_HTMLDefinition extends HTMLPurifier\HTMLPurifier_Definition {

$li_add_attr = dict[
"type" => new AttrDef\HTMLPurifier_AttrDef_Enum(vec["1", "i", "I", "a", "A", "square", "disc", "circle"]),
"data-checked" => new AttrDef\HTMLPurifier_AttrDef_Enum(vec["false", "true"]),
"value" => new AttrDef\HTMLPurifier_AttrDef_Integer(),
];
$li_element = new HTMLPurifier\HTMLPurifier_ElementDef(true, $li_add_attr, vec[], vec[], vec[], new ChildDef\HTMLPurifier_ChildDef_Optional($alt_child_elements),
Expand Down

0 comments on commit 3fc997a

Please sign in to comment.