Subject: | Custom attributes allow |
Date: | Thu, 21 May 2015 23:41:33 +0200 |
To: | bug-HTML-Defang [...] rt.cpan.org |
From: | Vladimir Stojic <atmanactive [...] gmail.com> |
Currently, HTML-Defang's interface attribs_to_callback/attribs_callback
DOES NOT WORK if you want to allow some custom attributes but still
defang the rest of the HTML.
To make it work, insert the following code at the line number 1890:
$AttribRule = "anything";
It should work now.
Module author(s) implemented attribute value classes to check against,
but completely forgot to connect that functionality with
attribs_callback part.
Since you would want to allow custom attributes (like aria-expanded and
similar), it is safe to assume that you would also allow the value of
those attributes to be anything.