mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Apply <p> tag workaround to <dd> and <dt> too
Change-Id: Ie639c8fd740adc8d9fa26d61ebae2716e41eb2ba
This commit is contained in:
parent
37a1bf7cc8
commit
13c44dd336
|
@ -544,7 +544,7 @@ ve.dm.Converter.prototype.getDomFromData = function( data ) {
|
||||||
|
|
||||||
// HACK: do postprocessing on the data to work around bugs in Parsoid concerning paragraphs
|
// HACK: do postprocessing on the data to work around bugs in Parsoid concerning paragraphs
|
||||||
// inside list items
|
// inside list items
|
||||||
$( container ).find( 'li' ).each( function() {
|
$( container ).find( 'li, dd, dt' ).each( function() {
|
||||||
var $sublists = $(this).children( 'ul, ol' ),
|
var $sublists = $(this).children( 'ul, ol' ),
|
||||||
$firstChild = $(this.firstChild);
|
$firstChild = $(this.firstChild);
|
||||||
if ( $firstChild.is( 'p' ) ) {
|
if ( $firstChild.is( 'p' ) ) {
|
||||||
|
|
Loading…
Reference in a new issue