attrs-> should be renamed to extAttrs if ( ( $dataMw->attrs->action ?? null ) === 'flush' ) { $node->appendChild( $node->ownerDocument->createTextNode( $obj->buf ) ); $obj->buf = ''; } else { $obj->buf .= $dataMw->body->extsrc; } } } } /** * @inheritDoc */ public function wtPostprocess( ParsoidExtensionAPI $extApi, Node $node, array $options ): void { // Pass an object since we want the data to be carried around across // nodes in the DOM. Passing an array won't work since visitDOM doesn't // use a reference on its end. Maybe we could fix that separately. DOMUtils::visitDOM( $node, [ $this, 'staticTagPostProcessor' ], (object)[ 'buf' => '' ] ); } }