This is the same method as used internally by the conflict detector to compute IDs for each node as an md5 hash. You could use it to verify that your scripts compute the same hashes for the same node inputs as the conflict detector.
Returns an md5 hash based on the the contents of the first of the following properties of domNode found to have a truthy value:
src
href
innerText
If domNode is not an object, or all of these properties are falsy, then it returns undefined.
Any nodes in the nodesFound object that don't appear in the nodesTested object are considered "leftovers"--inconclusive tests.
An implementation of this method can be provided like this:
<html><!-- bunch of stuff --><body><!-- more stuff --><scriptdata-fa-detection-ignoretype="text/javascript">
window.FontAwesomeDetection ={report:function(params){// Do your own reporting here}}</script><scripttype="text/javascript"src="https://example.com/fontawesome/vVERSION/js/conflict-detection.js"></script></body></html>
Advertisement
Remove ads with a Pro plan!
Using this requires Font Awesome Pro
Pro
A subscription to a Pro-level plan will remove all third-party advertisments on fontawesome.com.
And of course Pro-level plans come with…
All 16,150 Icons in Font Awesome
Solid, Regular, Light, Thin, and Duotone Styles for Each Icon + Brands
A Perpetual License to Use Pro
Services and Tools to Make Easy Work of Using Icons