react-html-parser icon indicating copy to clipboard operation
react-html-parser copied to clipboard

fallback for attribute names to unchanged name

Open wellenvogel opened this issue 5 years ago • 1 comments

Would be helpful to use the unmodified attribute name as a fallback when there is no internal mapping of attributes. This would allow a transform or processNodes function to implement some special handling for attributes (like e.g. dealing with event handlers). In any case the htmlparser2 already converts attributes to lower case - so there should be no compatibility problem for existing code.

wellenvogel avatar Nov 02 '20 09:11 wellenvogel

Coverage Status

Coverage remained the same at 100.0% when pulling c73314ba3c8ce2fc515bd4489bdb815da532931c on wellenvogel:master into e89bba4f8022a92418186cfaacfd473e81e31d92 on wrakky:master.

coveralls avatar Nov 02 '20 09:11 coveralls