[pmwiki-devel] Extra <p> when adding fieldset to form markup

marc gmane at auxbuss.com
Thu Nov 23 14:30:20 CST 2006


Patrick R. Michaud said...
> On Wed, Nov 22, 2006 at 02:44:47PM -0000, marc wrote:
> > Hans said...
> > > Wednesday, November 22, 2006, 9:47:57 AM, marc wrote:
> > > 
> > > > I'm tying to add fieldset markup, but when the HTML is generated the
> > > > tags are surrounded by unwanted <p> tags, which invalidates the HTML.
> > > 
> > > <fieldset> is a blocklevel element, so perhaps try this:
> > > [...]
> > 
> > Hi Hans,
> > 
> > Brilliant! Thanks a lot.
> 
> Another possibility is to add fieldset to PmWiki's understanding
> of block-level elements.
> 
>     $BlockPattern .= '|fieldset';
> 
> I can probably see about making this change in the core.

I'll try this tomorrow. Thanks. Be cool to have it in the core.

Two additional items... ;-) <label> and <legend>, both are inline. 
Legend is tied to fieldset, of course, and fairly minor, but label is an 
accessibility requirement and potentially a bit trickier.

-- 
Best,
Marc




More information about the pmwiki-devel mailing list