Last modified: 2008-03-22 00:21:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8813, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6813 - HTML validation fails when $wgUseTrackbacks = true in LocalSettings.php
HTML validation fails when $wgUseTrackbacks = true in LocalSettings.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.8.x
All All
: Lowest trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-25 08:14 UTC by Nick Jenkins
Modified: 2008-03-22 00:21 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nick Jenkins 2006-07-25 08:14:04 UTC
When $wgUseTrackbacks = true in the LocalSettings.php, then the HTML for an
article view will contain this in the header area:
=================================================
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
   rdf:about="http://192.168.0.64/wiki/index.php/Main_Page"
   dc:identifier="http://192.168.0.64/wiki/index.php/Main_Page"
   dc:title="Main Page"
   trackback:ping="http://192.168.0.64/wiki/trackback.php?article=Main_Page" />
</rdf:RDF>
=================================================

However, when validating this page using the W3C's web form (
http://validator.w3.org/check ), this causes 9 errors, namely:
=================================================
# Error  Line 25 column 19: there is no attribute "xmlns:rdf".
# Error Line 26 column 18: there is no attribute "xmlns:dc".
# Error Line 27 column 25: there is no attribute "xmlns:trackback".
# Error Line 27 column 80: element "rdf:RDF" undefined.
# Error Line 29 column 13: there is no attribute "rdf:about".
# Error Line 30 column 17: there is no attribute "dc:identifier".
# Error Line 31 column 12: there is no attribute "dc:title".
# Error Line 32 column 18: there is no attribute "trackback:ping".
# Error Line 32 column 78: element "rdf:Description" undefined.
=================================================

I know very little about RDF, but is it maybe possible to do the same thing in a
way that keeps the W3C validator happy?
Comment 1 Brion Vibber 2008-03-22 00:21:18 UTC
Fixed in r32320. The trackback spec recommends putting the RDF XML inside an HTML comment... awful from an XML perspective, but it seems to be 'the thing' for these silly RDF bits. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links