#34 [1.5a6] Quotemarks in Links

open
nobody
None
5
2004-12-23
2004-12-23
Cindi
No

It seems that sometime between 1.3a3 and the current
nightly something changed in the way that user-entered
links and links for archive pages are turned into HTML.
It causes pages to no longer validate.

Previously, they were as such:
<a href="http://wordpress.org/" title="Powered by
WordPress"> <img
src="http://www.solvingnormal.com/images/wp.gif"
alt="WordPress" title="Powered by WordPress" /></a>

Now, they have single quotemarks:
<a href='http://wordpress.org/' title='Powered by
WordPress'> <img
src='http://www.solvingnormal.com/images/wp.gif'
alt='WordPress' title='Powered by WordPress' /></a>

The problem arises when the title or alt text has an
apostrophe/single quote mark in it, because it's seen
as the closing mark for the tag property and the
validator gives errors.

(Example of problem tag: <a ... title='Justin's
LiveJournal'>)

If I can clarify this at all, please let me know. Or if
this is meant to be this way for a reason, and there's
something I should be doing differently, let me know
that too.

(The href tags for the archive page links have been
changed to single quotemarks as well)

Discussion


Log in to post a comment.