Description

Current (1.5.1+refactor) code produces HTML with <p> <pre> ... </pre> <p> which is invalid.

p may only contain inline elements, not block elements.

Example

bla bla

asdasad

bla bla

Just try to validate some pages in this wiki. TODO: search short example code.

Details

This wiki.

Workaround

None. The p usually gets closed by browsers automatically and the /p after the pre just gets ignored.

The W3C validator also closes the p automatically, but complains about the /p of course, because no p is open anymore.

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/HtmlParagraphsWithBlockElements (last edited 2007-10-29 19:20:14 by localhost)