Closed (fixed)
Project:
Link Purpose Icons
Version:
1.0.x-dev
Component:
Bugs
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Jul 2026 at 17:45 UTC
Updated:
22 Jul 2026 at 19:50 UTC
Jump to comment: Most recent
Has anyone had any luck using this with Cloudflare's email obfuscation feature? Due to how they are manipulating the DOM, any mailto: links end up throwing "Uncaught TypeError: o.previousSibling.checkVisibility is not a function".
Comments
Comment #2
itmaybejj commentedOh interesting. That should not be hard to fix. Do you have an example site where I can study the markup?
Comment #3
jackfoust commentedhttps://www.andovervillageny.gov/ should work. There is an email link on the footer so any page will throw the exception. It is interesting how in chrome console it shows the real email address and in view source it shows the cloudflare obfuscation.
Comment #6
itmaybejj commentedI can't get it to throw there but I did reproduce the error by putting an HTML comment node as the second to last word.
This tag will fix that. It will still cause false negatives (it should iterate past the code comment), but that's how the existing code works too so that can be a problem for a larger refactor.
Comment #7
itmaybejj commentedmarking as fixed with fingers crossed. Reopen if I'm wrong!