Javascript error when managing pages – IE apostrophe issue?
-
I have a WordPress installation for a client that I’m using to host a whole site (not just a blog), and it is generally working well.
However, the client called me up today and told me they are getting “errors” when they go to the manage pages screen (wp-admin/edit-pages.php).
I wasn’t seeing the errors in Firefox, but when I tried in IE, I saw two. In both cases, it seems to be related to an apostrophe in the title of a listed page. The page titles are:
Dale’s Auto Sales
Fairly Reliable Bob’sThe code that’s throwing the error seems to be:
<a href='post.php?action=delete&post=31' class='delete' onclick="return deleteSomething( 'page', 31, 'You are about to delete the "Fairly Reliable Bob's" page.n"OK" to delete, "Cancel" to stop.' );">Delete</a>
I can see that the apostrophe is being turned into an HTML entity for the Javascript call, but it seems suspicious that only these two page titles cause problems. I’m wondering if perhaps IE might be “converting” the entities to apostrophes? Or maybe it has to do with the fact that they’re “fancy” apostrophes? I’m at a loss but hoping someone knows.
Any assistance you can offer is much appreciated!
- The topic ‘Javascript error when managing pages – IE apostrophe issue?’ is closed to new replies.