(In reply to comment #2)
> Krinkle: Could you provide a dump of VE's input and output DOM?

Given the steps to reproduce the bug from comment 0, I get the following:

> doc = ve.instances[0].model.documentModel;
> d = ve.createDocumentFromHtml( ve.init.mw.targets[0].originalHtml );
> d2 = ve.dm.converter.getDomFromData( doc.getFullData(), doc.getStore(), doc.getInternalList() );
> copy( d.body.innerHTML );

<p data-parsoid="{&quot;dsr&quot;:[0,48,0,0]}"><b data-parsoid="{&quot;dsr&quot;:[0,48,3,3]}">MediaWiki has been successfully installed.</b></p>

<p data-parsoid="{&quot;dsr&quot;:[50,171,0,0]}">Consult the <a rel="mw:ExtLink" href="//meta.wikimedia.org/wiki/Help:Contents" data-parsoid="{&quot;targetOff&quot;:103,&quot;dsr&quot;:[62,116,41,1]}">User's Guide</a> for information on using the wiki sandbox software. 12</p>

<h2 data-parsoid="{&quot;dsr&quot;:[173,194,2,2]}"> Getting started </h2>
<ul data-parsoid="{&quot;dsr&quot;:[195,535,0,0]}"><li data-parsoid="{&quot;dsr&quot;:[195,281,1,0]}"> <a rel="mw:ExtLink" href="//www.mediawiki.org/wiki/Manual:Configuration_settings" data-parsoid="{&quot;targetOff&quot;:253,&quot;dsr&quot;:[197,281,56,1]}">Configuration settings list</a></li>
<li data-parsoid="{&quot;dsr&quot;:[282,335,1,0]}"> <a rel="mw:ExtLink" href="//www.mediawiki.org/wiki/Manual:FAQ" data-parsoid="{&quot;targetOff&quot;:321,&quot;dsr&quot;:[284,335,37,1]}">MediaWiki FAQ</a></li>
<li data-parsoid="{&quot;dsr&quot;:[336,434,1,0]}"> <a rel="mw:ExtLink" href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" data-parsoid="{&quot;targetOff&quot;:403,&quot;dsr&quot;:[338,434,65,1]}">MediaWiki release mailing list</a></li>
<li data-parsoid="{&quot;dsr&quot;:[435,535,1,0]}"> <a rel="mw:ExtLink" href="//www.mediawiki.org/wiki/Localisation#Translation_resources" data-parsoid="{&quot;targetOff&quot;:498,&quot;dsr&quot;:[437,535,61,1]}">Localise MediaWiki for your language</a></li></ul>

> copy( d2.body.innerHTML );

<p data-parsoid="{&quot;dsr&quot;:[0,48,0,0]}"><b data-parsoid="{&quot;dsr&quot;:[0,48,3,3]}">MediaWiki has been successfully installed.</b></p>

<p data-parsoid="{&quot;dsr&quot;:[50,171,0,0]}">Consult the <a href="//meta.wikimedia.org/wiki/Help:Contents" rel="mw:ExtLink" data-parsoid="{&quot;targetOff&quot;:103,&quot;dsr&quot;:[62,116,41,1]}">User's Guide</a> for information on using the wiki sandbox software. 12<a href="https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce" rel="mw:ExtLink" data-parsoid="{&quot;targetOff&quot;:403,&quot;dsr&quot;:[338,434,65,1]}">MediaWiki release mailing list</a></p><ul data-parsoid="{&quot;dsr&quot;:[195,535,0,0]}"><li data-parsoid="{&quot;dsr&quot;:[435,535,1,0]}"> <a href="//www.mediawiki.org/wiki/Localisation#Translation_resources" rel="mw:ExtLink" data-parsoid="{&quot;targetOff&quot;:498,&quot;dsr&quot;:[437,535,61,1]}">Localise MediaWiki for your language</a></li></ul>