Page MenuHomePhabricator

<code> tags should render the same as <pre>
Closed, DeclinedPublic

Description

Author: damien

Description:
It seems that the contents of <pre> tags get by without processing. It seems logical that
<code> tags should follow this. I have included a test case:

<pre><h1>This is an example HTML snippet.</h1></pre>

The following tag <code><h1></code> should be rendered in a similar method to the above.


Version: unspecified
Severity: enhancement

Details

Reference
bz2154

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:28 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz2154.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

WONTFIX, X?HTML is supposed to be rendered inside <code> but not inside <pre>,
this is standard behaviour for these tags both on MediaWiki pages and outside them.