Stringify and parse rendered references

It turns out there are events bound to the rendering of CE nodes that
prevent certain events. The quick fix is to just round trip the
reference rendering to through the browser's HTML serializer and
parser, but T92583 has been filed to find a more general solution.

Bug: T92427
Change-Id: I725a0d2dbb24af9cbe7b1e7e0c8e0bda7fd8417c
This commit is contained in:
Trevor Parscal 2015-03-12 16:33:34 -07:00 committed by Jforrester
parent 993c7ecfe5
commit 5cbd04ac3e

View file

@ -64,7 +64,8 @@ ve.ui.MWReferenceContextItem.prototype.getRendering = function () {
view.destroy();
return view.$element;
// Strip the HTML rendering of any events that might be still bound to it
return $( view.$element.html() );
};
/**