Skip Menu |

This queue is for tickets about the HTML-Defang CPAN distribution.

Report information
The Basics
Id: 104612
Status: new
Priority: 0/
Queue: HTML-Defang

People
Owner: Nobody in particular
Requestors: atmanactive [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.