#2915 closed defect (bug) (fixed)
XHTML validation failure when entry title containing quotes
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.0.4 |
| Component: | Administration | Keywords: | bg|needs-patch bg|2nd-opinion |
| Focuses: | 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 »</a></p>
Change History (6)
Note: See
TracTickets for help on using
tickets.
skeltoac sez: wp_specialchars($str, 'double')
should fix it.