Match all instances of character except the first one, without lookbehind

I’m struggling with this simple regex that is not working correctly in Safari: (?<=?.*)? It should match each ?, except of the first one. I know that lookbehind is not working on Safari yet, but …

Insert tag in loop javascript

I want to insert the p tag after each rect tag but unfortunately when I used appendChild the p tag is insert into the rect tag and not after: JS code: $(“#id_svg .nv-series-0 rect”).each(…

Jquery/Javascript – Regex – Error only in Safari browser

Used below JS script with regex. To allow only numbers in input field. To change currency value with comma like 1,000 or 1,00,000 on user type value in input. Below codes working in all major …

getCurrentPosition in JS does not work on iOS

I have a page that contains a code that gets the current location from the device and load other stuff based on the location with this code: if (navigator.geolocation) { navigator.geolocation….

javascript file input onchange not working [ios safari only]

The code below works everywhere except on safri mobile. Apparently the onchange is never triggered. // create a hidden file input element var input = document.createElement(“input”); input.type = …

Cropping with drawImage not working in Safari

I’m working on some simple image manipulation functions with canvas. The user uploads an image, is able to rotate and crop it and then clicks ok. The image is then split in half with each half drawn …

Video auto play is not working in Safari and Chrome desktop browser

I spent quite a lot of time trying to figure out why video embedded like here:

Safari Developer Tools: How to Preserve Console Log Upon Navigation?

When using Safari Web Inspector to read the JavaScript console output, the log is reset upon navigation i.e. going from page index.html to mail.html clears the console output. In the Chrome Developer …