not really valid as white becomes black.
"But in fact, at the time this game was played
there was no specific rule stating that a pawn
had to be promoted to a piece of the same colour!(when designing a game's rules, "restrictive" means the approach is "everything is permitted by default, unless explicitly restricted", while "permissive" means "everything is forbidden by default unless explicitly permitted" -- if we assume that chess is a restrictive-rules game, we can similarly mate in one from almost any position by simply inventing new pieces with unusual abilities and declaring that "the rules don't say you can't!")
What will happen it is not endgame. Who will move the black knight promoted by white side?