Tags:
create new tag
view all tags

Feature Proposals » For paragraphs generate <p></p> instead of <p/>

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
MergedToCore HideyoImazu AcceptedByReleaseMeeting 2013-07-04   TWikibug:Item7290 JerusalemRelease

Edit Form

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2013-10-11 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.