News for hackers. Stuff that matters.
Re:The Triumph of Safari by pontilanda on Saturday January 14, 2023 @06:03AM (#34379251)
Anyone who disagrees hasn't tried to develop a website on Chrome and Firefox only to find out Safari still doesn't support regex lookbehind (which means zero javascript will now run). It's only been available in Chrome for 5 years after all, no rush.
Re:The Triumph of Safari by eska on Saturday January 14, 2023 @07:49AM (#34379900)
None of your Jacascript code will run? That sounds overly dramatic. 1. this only concerns regex 2. there’s an alternative regex syntax doing the same thing as part of the ecma standard 3. it can be implemented very easily without regex in almost all cases 3. It seems like you’re only considering chrome for desktop, not other browsers or mobile
Re:The Triumph of Safari by pontilanda on Monday January 16, 2023 @11:51PM (#34409279)
> That sounds overly dramatic

Try appending this piece of code to your `index.js` and let me know how it goes in Safari:

    const r = /(<!foo)/
The parser will encounter a syntax error and no code is executed.