Merge "Deprecate assertException in MediaWikiTestCase as it adds no value"
[lhc/web/wiklou.git] / resources / mediawiki / mediawiki.htmlform.js
index 8e764e1..de06859 100644 (file)
                $fieldLabelText.text( $oldContainer.find( '.mw-label label' ).text() );
                $fieldLabel.append( $fieldLabelText );
                $container.prepend( $fieldLabel );
-               $oldContainer.parent().append( $container );
-               $oldContainer.remove();
+               $oldContainer.replaceWith( $container );
                return $container;
        }