Page MenuHomePhabricator

Parsoid: Extension content not wrapped correctly
Closed, ResolvedPublic

Description

<source lang="php">
echo "foo";
</source>

converts to:

<div dir="ltr" class="mw-geshi mw-code mw-content-ltr" typeof="mw:Extension/source" data-parsoid="{...}" about="#mwt3">
<div class="php source-php">
<pre class="de1">
</pre></div>
</div><span about="#mwt3" data-parsoid="{}">

</span>
<p data-parsoid="{...}">echo "foo";
&lt;/source&gt;</p>

The paragraph at the end is not tagged as #mwt3 and so becomes editable.


Version: unspecified
Severity: normal

Details

Reference
bz50224

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:06 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz50224.

Related URL: https://gerrit.wikimedia.org/r/70664 (Gerrit Change I0de1e49e2fdff76874ca48f88d8b8bb4ff75e923)

https://gerrit.wikimedia.org/r/70664 (Gerrit Change I0de1e49e2fdff76874ca48f88d8b8bb4ff75e923) | change APPROVED and MERGED [by jenkins-bot]