Ticket #2915 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

XHTML validation failure when entry title containing quotes

Reported by: deko Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0.4
Severity: normal Keywords: bg|needs-patch bg|2nd-opinion
Cc:

Description

line 331 comment-functions.php

echo ' title="' . sprintf( ('Comment on %s'), $post->post_title ) .'">';

PROBLEM: XHTML validation failure when a entry title contains quotes is used, such as: This a "blog" entry title?

Error message from W3C validation service:

This page is not Valid XHTML 1.0 Transitional! Error: an attribute value literal can occur in an attribute specification list only after a VI delimiter. ... This is a "blog" entry title?">Comments &#187;</a></p>

Change History

07/06/06 01:00:47 changed by error

  • keywords set to bg|needs-patch bg|2nd-opinion.
  • version set to 2.0.4.
  • milestone set to 2.0.4.

skeltoac sez: wp_specialchars($str, 'double') should fix it.

07/06/06 02:24:49 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [3993]) specialchars comment title. Props deko. fixes #2915

07/06/06 02:27:55 changed by ryan

(In [3994]) specialchars quotes in comment title. Props deko. fixes #2915

07/06/06 02:28:36 changed by ryan

(In [3995]) specialchars quotes in comment title. Props deko. fixes #2915

07/07/06 11:42:05 changed by Viper007Bond

Haha, I reported this 7 months ago. Glad it finally got fixed. :)

11/30/06 19:41:50 changed by

  • milestone deleted.

Milestone 2.0.4 deleted