Port HTMLDiagnostics to PathV2. No intended functionality change.