innerHTML reset in startSession was destroying #phase-label and #progress-fill elements, then recreating them with same IDs. XHR progress events fired asynchronously but getElementById might return stale references or fail during the DOM update window. Now #phase-label, #progress-fill, and #session-error are permanent elements in the static HTML. startSession clears them via textContent/style instead of innerHTML — no DOM destruction. showError appends to #session-error instead of #session-status. |
||
|---|---|---|
| .. | ||
| _analysis.html | ||
| base.html | ||
| index.html | ||
| polling.html | ||