Motivation
In most cases, <p/> generated by Render.pm for a blank line is recognized as <p> by browsers because the MIME type of TWiki pages is text/html rather than text/xml. As such, browsers see p tags not closed explicitly. This messes up the
DOM tree.
This was discussed on
DoNotUseSelfclosingPTag for %TWISTY{...}%.
For TWISTY this is not necessary, but there are other cases where a better and predictable
DOM tree is desirable or necessary.
Description and Documentation
Having Render.pm put <p></p> instead of <p/>.
This makes the
DOM tree of a TWiki page better and more predictable.
This may have unexpected consequences. So to be on the safer side, <p/> is put by default.
Only if {OpenAndClosePTags} is true, <p></p> is put in place of <p/>.
Examples
Impact
Implementation
--
Contributors:
Hideyo Imazu - 2013-07-04
Discussion
Reflected discussion in
JerusalemReleaseMeeting2013x07x04.
--
Hideyo Imazu - 2013-07-04
if many tests show that there are no unexpected consequences we could set the default to open & close tags.
--
Peter Thoeny - 2013-07-05