문제

I am creating an online picture storage system that renames images using a 7 character alphanumeric code. These codes are then used in URLs. I would like to be able to double-click on these codes and copy them from a URL within Chrome's URL bar. I am finding that certain characters (- and ~, to name a few) cause double-click to only highlight part of the code.

Is there a list of characters that double-click will not include in its grouping?

Is this an OS or browser specific list?

I would like for my system to use the greatest variety of (URL safe) characters, while still allowing double click to work.

도움이 되었습니까?

해결책

This is entirely browser specific. In IE, _ is "unsafe", while - is "safe". In Chrome, _ is "safe", - is "unsafe". In firefox both are "unsafe". I don't think browsers have any documentation on this. For open-source browsers you can look at the source to see which are save. I'd only use alphanumeric characters to be sure.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top