ownerDocument; $offsetType = $env->getRequestOffsetType(); ContentUtils::convertOffsets( $env, $doc, 'byte', $offsetType ); // Because linter runs before this DOM pass, we need to convert offsets // of collected lints from 'byte' to the requested type if ( $offsetType !== 'byte' ) { $lints = $env->getLints(); LintLogger::convertDSROffsets( $env, $lints, 'byte', $offsetType ); $env->setLints( $lints ); } DOMDataUtils::getPageBundle( $doc )->parsoid->offsetType = $offsetType; } }