Last modified: 2011-04-14 15:11:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12276, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10276 - Sanitizer escapes "<p />" instead of allowing a blank paragraph through
Sanitizer escapes "<p />" instead of allowing a blank paragraph through
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.10.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: need-parsertest
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-15 15:33 UTC by David
Modified: 2011-04-14 15:11 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description David 2007-06-15 15:33:54 UTC
If an empty <p/> element is used in wiki markup, it's parsed as &amp;lt;p/&amp;gt; the resulting HTML, instead of an HTML paragraph element.
Comment 1 David 2007-06-15 15:34:55 UTC
Whoops.  I meant:

&lt;p/&gt;

not

&amp;lt;p/&amp;gt;
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-20 06:36:10 UTC
Note that browser support for self-closing tags is, as far as I know, shabby, so it's probably best to translate it to <p></p>.
Comment 3 Jesse (Pathoschild) 2007-06-27 03:15:45 UTC
The paragraph element is a container, so a self-closing tag would probably make little sense in this case. The <br /> tag would be more appropriate, or correctly using the paragraph tag as a <p>container</p>, or using the wiki double-spacing syntax (which is parsed as <p> tags). 

It might be better to discourage the use of bad markup, rather than encourage it by hacking it into working.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links