From b19e8393a410585a2ba3e09ba5e029412470ce6b Mon Sep 17 00:00:00 2001 From: Akshay Shukla Date: Tue, 27 Apr 2021 14:04:50 +0530 Subject: [PATCH] added data-checked attribute for li tag --- src/Definition/HTMLDefinition.hack | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Definition/HTMLDefinition.hack b/src/Definition/HTMLDefinition.hack index 1be0157..48a5855 100644 --- a/src/Definition/HTMLDefinition.hack +++ b/src/Definition/HTMLDefinition.hack @@ -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),