$mockEnv, "selserMode" => true ]; $doc = ContentUtils::createAndLoadDocument( $html, [ "markNew" => true ] ); $body = DOMCompat::getBody( $doc ); $norm = new DOMNormalizer( $mockState ); $norm->normalize( $body ); $opts = [ 'keepTmp' => true, 'storeDiffMark' => true, ]; print ContentUtils::dumpDOM( $body, 'DOM post-normalization', $opts ); print "\n";