[ php-blog-Bugs-1474290 ] dashes in title causes XHTML error
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.serendipity.trackers |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1474290, was opened at 2006-04-21 16:41
Message generated for change (Comment added) made by garvinhicking
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1474290&group_id=75065
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Accepted
>Priority: 2
Submitted By: Rhett Robinson (rhett_robinson)
Assigned to: Garvin Hicking (garvinhicking)
Summary: dashes in title causes XHTML error
Initial Comment:
I am running serendipity-1.0-beta2 (upgraded from
0.8-beta4 where I noticed the bug), and found the
following: if I put dashes in a title (e.g.
"Title--more details") it causes the page to not
validate as XHTML 1.0 Transitional.
In particular, the following comments appear in the HTML:
<!--
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description
rdf:about="http://mysite.com/blog/index.php?/feeds/ei_148.rdf"
trackback:ping="http://mysite.com/blog/comment.php?type=trackback&entry_id=148"
dc:title="Title--more details"
dc:identifier="http://mysite.com/blog/index.php?/archives/148-Title-more-details.html"
/>
</rdf:RDF>
-->
and, in particular, the appearance of "--" in
'dc:title="Title--more details"' seems to cause a
validation error.
This results, for example, in Firefox 1.5.0.2
displaying --> after the entry.
----------------------------------------------------------------------
>Comment By: Garvin Hicking (garvinhicking)
Date: 2006-04-22 12:28
Message:
Logged In: YES
user_id=473563
Hi!
Sadly, printing the RDF comment title is done in the
entries.tpl templates, so we cannot fix it out of the box
for all templates. We'd need to modify every existing
template to replace "--" with "-". I'll try to do that with
out bundled and additional themes the next days.
Thanks for pointing me to the URL!
----------------------------------------------------------------------
Comment By: Rhett Robinson (rhett_robinson)
Date: 2006-04-21 20:54
Message:
Logged In: YES
user_id=538475
The document linked to below explicitly states that for
compatibility (with SGML) the string "--" (double-hyphen)
must not occur within comments. Having the double-hyphen in
the comments therefore violates well-formedness. And, as I
have mentioned, including the double-hyphen in a comment
does cause the validator at validator.w3.org to fail. I'm
not entirely sure of where the fault lies (admittedly
Firefox could probably handle this non-well-formedness
better), but I thought I'd bring this to your attention
again. Thanks.
http://www.w3.org/TR/REC-xml/#sec-comments
----------------------------------------------------------------------
Comment By: Garvin Hicking (garvinhicking)
Date: 2006-04-21 18:11
Message:
Logged In: YES
user_id=473563
Sadly this is a strange display issue of Firefox. There's no
reason it turns those "--" into invalid characters. I also
cannot find any RFC that says "--" are forbidden in XHTML
(metadata). So honestly I think this is a thing that needs
fixing in Firefox. It does not show in RSS readers or other
browser AFAIK.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1474290&group_id=75065
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642