Hello,

On 10/11/2011 10:58 AM, Franz wrote:
Hi,

as I extended the CKEditorPlugin for Trac, I found that Trac formats
underlined text by this line of code:
<span class="underline">  As far as I understand this is defined in
http://trac.edgewall.org/browser//trunk/trac/wiki/formatter.py#L409

Blame is your friend ;-)

See http://trac.edgewall.org/changeset/129

So nearly since the beginning of the project, we use XHTML 1.0 Strict in which there's no <u> tag; it's only present in XHTML 1.0 Transitional.

Same thing for HTML, it was in 3.2 but no longer in 4.0. Not so surprisingly it was reintroduced in HTML5, though it comes back with a warning: Note: The default rendering of the u element in visual presentations clashes with the conventional rendering of hyperlinks (underlining). Authors are encouraged to avoid using the u element where it could be confused for a hyperlink..

So until we switch to HTML5, there's no point in reintroducing <u> ;-)

-- Christian


CKEditor uses the u-tag for underlined text, so there is a difference,
which has to be handled.

But why are you using the span-tag, when there is a u-tag? Isn't the u-
tag the official / nicer solution?


--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to trac-dev@googlegroups.com.
To unsubscribe from this group, send email to 
trac-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to