5 ms·
Tell HN: Upcoming macOS Chrome change may break copy/pasting code from websites
Just became aware of this and thought I would flag it up for the HN community, as a lot of us here share code on our personal sites and blogs.
In a nutshell, it looks like an upcoming change to add 'text substitution support' to Chrome on MacOS might break code copy/pasting code from websites. The change means things like quotes and ellipsis will be substituted for non-ASCII characters, so code containing the affected characters won't be valid when copy/pasted. According to the Chromium ticket [0] it'll land in a few weeks.
It appears the issue currently affects StackOverflow. There's a question on their meta site [1] with a good description of the problem, that will probably also serve as a good place to look for potential solutions.
[0] https://bugs.chromium.org/p/chromium/issues/detail?id=42434#c134
[1] https://meta.stackoverflow.com/questions/386985
- duxup 7y agoMan why would they do that? Manipulating the text like that seems like a minimal anesthetic gain for a lot of headaches. I copied a thing. I want it to be that thing. I'll deal with the thing myself if it isn't ideal. Is there a "paste without dorking it up" option?
- chatmasta 7y agoPersonally, I'm taking the "use firefox" option.
- duxup 7y agoYeah i'm planning on that for a variety of reasons.
- MrEldritch 7y ago"Man why would they do that?" Security reasons, obviously. Can't have those poor, gullible "users" copy-pasting malicious code into the developer console, now can we?
- nik736 7y agoGlad I switched to Safari :) The dev tools are great and it's so lightweight overall that I never looked back.