diff --git a/src/Wt2Html/PP/Processors/WrapTemplates.php b/src/Wt2Html/PP/Processors/WrapTemplates.php
index <HASH>..<HASH> 100644
--- a/src/Wt2Html/PP/Processors/WrapTemplates.php
+++ b/src/Wt2Html/PP/Processors/WrapTemplates.php
@@ -1016,16 +1016,6 @@ class WrapTemplates implements Wt2HtmlDOMProcessor {
 
 				// Set up dsr->start, dsr->end, and data-mw on the target node
 				$encapInfo->datamw = (object)[ 'parts' => $tplArray ];
-				if ( WTUtils::isGeneratedFigure( $encapTgt ) ) {
-					// Preserve attributes for media since those will be used
-					// when adding info, which only happens after this pass.
-					// FIXME: There's a question here about whether we should
-					// be doing this unconditionally, which is T214241
-					$oldMw = DOMDataUtils::getDataMw( $encapTgt );
-					if ( isset( $oldMw->attribs ) ) {
-						$encapInfo->datamw->attribs = $oldMw->attribs;
-					}
-				}
 				DOMDataUtils::setDataMw( $encapTgt, $encapInfo->datamw );
 				$encapInfo->dp->pi = $paramInfoArrays;
Remove data-mw->attribs hack in template wrapper

No longer necessary since adding media info was moved before template
wrapping in <I>d3.

Previously, without this, a test failed,
"Image: in template parameter with empty parameter"

Change-Id: I7e<I>d<I>efae<I>cc<I>fdf3fc<I>ce<I>