Maybe we should forget this and let the browser do the right thing? I'm ok with throwing this away if that's more future-proof.