Ticket #2657 (closed defect: fixed)
Wiki formatter should not put wiki macro output inside a <p></p> element
| Reported by: | jhuntwork@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | low | Milestone: | 0.10 |
| Component: | wiki system | Version: | 0.9.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Wiki pages using a Table of Contents macro generate XHTML that is invalid. The problem lies in the fact that the wiki sticks a <div> tag inside a <p> tag.
See here: http://validator.w3.org/check?verbose=1&uri=http%3A//wiki.linuxfromscratch.org/lfs/
You can see this in the default TracGuide, too: http://validator.w3.org/check?verbose=1&uri=http%3A//wiki.linuxfromscratch.org/lfs/wiki/TracGuide
And here's a clip of the generated code:
<div class="wikipage">
<div id="searchable"><h1 id="WhatisLinuxFromScratch">What is Linux From Scratch?</h1>
<p>
<div class="wiki-toc"><h4>Table of Contents</h4><ul><li class="active"><a href="/lfs/wiki/WikiStart">LFS Home</a></li><li><a href="/lfs/wiki/news">News</a></li><li><a href="/lfs/wiki/download">Download</a></li><li><a href="/lfs/wiki/read">Read Online</a></li></ul></div>
</p>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


