#3965 closed defect (fixed)
BreadCrumbsNavPlugin produces invalid xhtml (strict)
Reported by: | jholg | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | BreadCrumbsNavPlugin |
Severity: | major | Keywords: | xhtml valid |
Cc: | Trac Release: | 0.11 |
Description
Disclaimer: I'm a newbie on these issues.
That said, Trac seems to produce nice valid xhtml 1.0 strict. breadcrumbsplugin breaks this by introducing <lh>Breadcrumbs:<lh>, with <lh/> not being allowed as a child of <ul/>
Proposed fix: Change the relevant css portion to
ul#breadcrumbs li:first-child {
color: #d1d1d1;
}
and make the "Breadcrumbs:" string appear as a simple <li/> instead of an <lh/>, but with the different color. So the effect should be the very same. This seems to work for me with Firefox 2.0.0.6 and also IE 6. Patch diff attached.
Regards, Holger
Attachments (2)
Change History (9)
Changed 16 years ago by
Attachment: | breadcrumbsplugin.patch added |
---|
Changed 16 years ago by
Attachment: | breadcrumbsnavplugin_valid_xhtml_patch.diff added |
---|
xhtml-validity patch for breadcrumbsnavplugin
comment:1 follow-up: 2 Changed 16 years ago by
pls ignore my last attachment, this is just a repost of the previous one - for some reason it does not get correctly rendered in trac, but it is not empty...
comment:2 Changed 14 years ago by
Keywords: | xhtml valid added |
---|
Replying to jholg:
pls ignore my last attachment, this is just a repost of the previous one - for some reason it does not get correctly rendered in trac, but it is not empty...
Sure, don't worry. Diff renderer is known to have problems with some diff formats, i.e. on timestamps in the header. There is still the option to download in original format, that will reveal the full content.
comment:3 Changed 13 years ago by
Owner: | changed from Stephen Hansen to Steffen Hoffmann |
---|---|
Summary: | breadcrumbsplugin produces invalid xhtml (strict) → BreadCrumbsNavPlugin produces invalid xhtml (strict) |
just straitening for changelog
;-)
comment:4 Changed 13 years ago by
(In [10889]) BreadCrumbsNavPlugin: Make HTML markup valid XHTML, refs #3965.
Thanks to jholg for the report and contribution of better code. I took the chance to flatten the CSS code for readability.
comment:5 Changed 13 years ago by
(In [10893]) BreadCrumbsNavPlugin: Assign Trac CSS classes for proper display, refs #3965.
The '|' after label, introduced by the fix for #3965, should be suppressed. While on it, add appropriate CSS class for the last list item too.
On the same move withdraw link style to allow for custom styling i.e. from
site.css
instead.
comment:6 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:7 Changed 13 years ago by
(In [10901]) BreadCrumbsNavPlugin: Fix crumbs list handling, refs #3965.
Code introduced in [10893] was not handling an empty list gracefully. Futhermore, when hiding of current resource results in an empty list, the list label should be suppressed as well.
breadcrumbsplugin patch for xhtml 1.0 validity