In my comment to this issue (#1383), there's a sample page that reproduces this issue.
In this branch, I first committed new unit tests that fail against against the current navigation code. Next I committed a couple of changes needed to handle these quote characters. I've only tested the fixes in Chrome & FireFox. Please let me know if you have any questions about the changes or the use case. Thanks for the consideration!
Added tests that demonstrate the bug described in issue 1383
These tests run against the unmodified code to verify the fixes made in the next commit
Fixes for handling single and double quote chars in data-url
Removed unneeded variable used for dev debugging
Replace unneeded variable
Use a direct reference since the variable isn't used for anything else
@SixtoSaez, Thank you for the pull request! It seems like you haven't signed a CLA. Please visit http://contribute.jquery.org/CLA/ and sign it so we can look into your PR.
Sorry about that, I must have missed that in the PR instructions. I just signed the CLA. Thanks for the reply & consideration!
There are merge conflicts here if you would like to update pr ill be happy to look at it until then closing