p4ulypops / jquery-clean

Automatically exported from code.google.com/p/jquery-clean
0 stars 0 forks source link

Allowed Attributes does not support attributes with dash in them #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use setting  allowedAttributes: [["data-hash"], ["data-image"]],
2. data-hash and data-image attributes will still be removed

What is the expected output? What do you see instead?
These attributes should no be removed. I checked with the data attribute, it 
worked as expected.

What version of the product are you using? On what operating system?
1.3.0

Original issue reported on code.google.com by andreas....@gmail.com on 23 May 2012 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by antixsof...@gmail.com on 23 May 2012 at 9:51

GoogleCodeExporter commented 9 years ago
added dashes to the attribute name regex

Original comment by antixsof...@gmail.com on 23 May 2012 at 9:55