[ 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 12:41
Message generated for change (Comment added) made by rhett_robinson
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: Wont Fix
Priority: 1
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&amp;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: Rhett Robinson (rhett_robinson)
Date: 2006-04-21 16: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 14: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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.