Settings

Theme

Ask HN: Why can't I copy and paste into HTML fields?

1 points by danmccorm 10 years ago · 1 comment · 1 min read


I've noticed a trend to prevent copying and pasting into HTML fields which I find quite irrational. Doesn't accuracy increase if I'm allowed to copy and paste something? Presently, I'm prevented from copying a checking account number into a field, so I have to type it out by hand, which is much more error-prone. Does anyone know why sites do this?

lsiunsuex 10 years ago

1 reason I can think of is when copying and pasting - the text formatting used from where you copied the string from can come over with the text. So your not pasting in just a number but potentially html / css with it.

For obvious reasons, this could be a problem and instead of stripping the html / css / garbage - it's easier to just prevent the action entirely.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection