This is an edge case i discovered while using nanomorph "in anger".
What is the best way to test issues like these?
// initial state
<form>
<label for=stuff>
<input autofocus="autofocus" name="stuff">
</label>
</form>
// Updated state based on input interaction
<form>
<h1>YOU DID A THING!</h1>
<label for=stuff>
<input autofocus="autofocus" name="stuff">
</label>
</form>