Edgewall Software
Modify

Opened 17 years ago

Last modified 6 years ago

#6623 new defect

emitting invalid xml:space="preserve" attributes on wiki and ticket pages (causes failed W3C validation)

Reported by: Daniel Kahn Gillmor <dkg-debian.org@…> Owned by:
Priority: low Milestone: next-major-releases
Component: wiki system Version: 0.11b1
Severity: normal Keywords: whitespace xml:space
Cc: dkg-debian.org@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm running a newly-updated trac site on version 0.11b1, using genshi 0.4.4.

When testing it against the W3C's XHTML validator, it is almost entirely compliant output, with one exception:

 Line 65, Column 49: there is no attribute "xml:space".
      <div class="wikipage searchable" xml:space="preserve">

The W3C itself says that this is legitimate XML, but that it must be "declared if it is used". i'm not enough of a web standards guru to be able to tell what that means, or where to fix the problem (is it a problem with genshi? with trac? with the W3C validator?)

Trac itself is so close to full validation that it would be a real shame for this one thing to slip through.

Attachments (0)

Change History (6)

comment:1 by Daniel Kahn Gillmor <dkg-debian.org@…>, 17 years ago

Cc: dkg-debian.org@… added; dkg@… removed

comment:2 by Christian Boos, 17 years ago

Component: generalwiki
Keywords: whitespace added
Milestone: 0.12
Owner: changed from Jonas Borgström to Christian Boos

This is done on purpose, in order to workaround the #3925 issue.

Real fix should be done in the WikiEngine refactoring, see TracDev/Proposals/WikiParserFormatterSplit#Technicaldetails.

comment:3 by Markus.Staab, 17 years ago

note: the roadmap page is also affected

comment:4 by Christian Boos, 17 years ago

Keywords: xml:space added

Looks like this should be no longer the case with recent Genshi (≥ [G805]).

I keep the ticket open as a reminder to get rid of r5586 once the Wiki formatter emits <pre> elements.

in reply to:  4 comment:5 by Christian Boos, 15 years ago

Priority: normallow

Replying to cboos:

… a reminder to get rid of r5586 once the Wiki formatter emits <pre> elements.

If it emits <pre> elements one day. See caveat in #8770.

comment:6 by Ryan J Ollos, 10 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.