Hacker News new | ask | show | jobs
by kevin061 191 days ago
This is an excellent point. I did not think of that.
3 comments

Instead of the zero-width div, you could set up an event listener for the copy event (using addEventListener() method) which calls .clipboardData.setData() on the ClipboardEvent to change it to your modified code.

That should avoid messing things up for people with screen readers while still trapping the copy+pasters.

Or add aria-hidden=true

I've had clipboard events and the clipboard API disabled in my browser to prevent websites from intercepting them for ages. I can't be the only one.

My take on that is that the very slim minority who does this are also likely passable through this very blunt hiring tool anyways.
There's an easier fix. Have the candidates state if they have a vision disability first and then send them down a different pathway for validation. There aren't that many, so it's not going to be costly or anything.
That would require the candidate to disclose their disability, which afaik, also isn't required.
You also forgot people who turn off CSS and JS, or use browsers that don't support them.